RFC: QE-147 and QE-148

This implements everything needed to deploy test packages on top of an installed PE. It's incomplete in its platform support, and probably needs some cleanup. But it works!