add patch support to cowboy_rest