Very basic implementation of the REST server