Implement a RESTful application programming interface (API)

Implements and closes #115.