Improve n2o_cowboy_rest handler
Refactor n2o rest handler and add json support
Merge pull request #39 from b0oh/rest

JSON implementation for rest handler