add event emitter and manuel response handler
use new constructor function for test app
add response handler to config
update jade doctype
add tests for event emitter