Simplified the code by reusing the HttpKernel code rather than copy-paste
Fixed the indentation to use spaces in the composer.json
Merge pull request #1 from stof/simplify_code

Simplified the code by reusing the HttpKernel code rather than copy-paste