added a way for users to register applications to the gateway