Implement the registerDevice request.