404 or other non-200 response codes were always throwing an IOException.

This fixes it so that it always returns the body (and the error codes are set appropriately).

Additionally, began work on fixing the print-db tool.
Fixed bug 2676. Exceptions are now properly handled.
Fixed cookiejar usage, added examples.
Merge branch 'master' of github.com:sk89q/commandhelper.git