Add snapshots API test suite
Make repos and snapshots API return JSON objects for packages when asked
Allow API creation of snapshots using package references