Merge pull request #9 from EricWittmann/master

added a way for users to register applications to the gateway