Removed comments from rest/service.php and wrote doc/REST.md instead