Allow applications to automatically register and update themselves

This will allow applications with a registration token to automatically register themselves, as well as automatically update their tokens.