Added REST API

The REST API is served at /api