Generate fake packaged apps (bug 1065579)

Create a packaged app zip file with accompanying db entries. I was able to install and run packaged app on desktop generated by this code.
ISTM that maybe a `--type=hosted|packaged` with a `num` parameter would be good? E.g. what if you had enough hosted apps?