Implement REST API for names (/rest/name/).