Merge pull request #11 from wick-ed/master

reviewed diff and tested locally
Refactoring request initialization
Merging with master
Merge pull request #12 from wagnert/master

Refactoring request initialization
added support for virtual host based rewrites