Extraction of the RESTful API logic into a separate gem

The general RESTful API logic has been moved to [Apitizer](https://github.com/IvanUkhov/apitizer).