Cowboy RESTfull middleware