An extension to simplify writing RESTful services on cowboy