Adds the RESTful part of the API extension.

A very basic one, but still.