made HTTP routers into their own class
replaced all calls to makeRouter with the Router constructor and .toFunction()