1. Wrap user registration in command class
2. Write tests
3. This allows users to log out and log in as different users and not receive push notifications on the old accounts on the same devices
Add a few more tests
Merge pull request #10 from lloydmeta/feature/support_registering_multiple_times

Feature/support registering multiple times