more tests, bugfixes and tweaks. I am still not really happy about the roles of handler and response and formatting response and sending it. Might have a look later again