Use middleware

middleware for:
*  detecting request format as json
*  checking for TLS (https)
*  detecting when a p2p session should be created
*  **handling room reservations**