Merge "x/ref: Restructure application, build and profile packages."