Implemented device registration API endpoints.