move configs where they belong for bundle-bundle
RESTful exception handling

All exceptions now get returned as json so a RESTful client can
handle them properly. I need to do the same thing for errors as
well.

It is recommended that you use something like http://jsonview.com/
in your browser since the pretty printing must now be done by the
client.