detect p2p rooms using the router for pattern matching instead of the route handler
move https check into a middleware function
use cors middleware
detect request json format in middleware
implements reservations middleware, places all middleware in lib directory
Merge pull request #6 from aoberoi/use-middleware

Use middleware