Added async handling

Async is now properly handled
Better inheritance
Application now deploys fine

Still need to work on percolators
With bonsai.io basic auth does not seem to be correctly passed along requests (unauthorized response)