move logic out of bogart.js into request.js and router.js
Revert "Merge pull request #57 from soitgoes/master"

This reverts commit 17d0500d0d3b7ad4debab300392fa072c4685923, reversing
changes made to f425c901e017b2b5150cbee8f4e4815ca664d02a.
should have been in last commit

move config to proper spot, fix prototype chain of the returned jsgi app for the router.