Move getting master key and manifest into ensure_connected
Use 'pack' lines in manifest for packs (REPO FORMAT CHANGE)
Use an append function, and other cleanups
- Changed GPG parameters
- Added an error message when incorrect number of parameters passed