Added REST interface for registering device