router: bugfixes, correct headers for invalid method
moved /api/schema to own file
router: errors bubble up the chains of routers