(maint) Get rid of http handler's initialize_for_puppet method.

It doesn't seem to be used anywhere except in some tests that expect it
to be called.

Also rescue any exception when processing a request in the http handler,
and respond with a 500(!).