Merge pull request #13 from wagnert/master

Replace direct instanciation with injection
added virtual host rewrite support
Merge pull request #14 from wick-ed/master

reviewed diff and tested locally with 0.6.0