Add inject methods instead of constructor injection + add shutdown hanlder
Refactor to fit PSR-2 standard
Merge pull request #2 from wagnert/master

Add inject methods instead of constructor injection + add shutdown hanlder