refactored, removed the way it interacts as middleware, now its a function who you can call
converted some more tests
converted json tests
tests for bind