Added the controller relay API resource and modified the pairing process