Fixed deadlock upon site registration

Closes #319
Switched to updated http bundle 2.2.2
Using the context class loader to load resources from the shared context