Merge pull request #57 from zelgerj/master

removing double rtrim
bugfix: wrong trimming of host name
Merge pull request #58 from wick-ed/master

bugfix: wrong trimming of host name
removed connection handler moved to webserver