Create mongo rest and web socket services

This is ready to merge into the master.