added config
Started to organize the project a little more

Introduced the middleware flow. Not sure if it'll actually feel right since
there's bound to be a lot of demultiplexing deep in the chain (proxy). I've
left the response out of the middleware chain to represent this uncertainty.
It should flush itself out rather quickly.