Handle the situation where the pkgdb2 api did not return a JSON object

This will be likely caused by a 500 error returning the default 500
page/html which will of course not load correctly as JSON.

With --debug we will be able to see what went wrong.
Update the log.debug to use {} and .format() as elsewhere
Add the possibility for admins to orphans someone else's packages