enable registration and unregistration of different types of devices
Invalid IDs throw error on register/unregister
Comment header cleanup.
Merge branch 'unRob-patch-1'
Merged unRob's changes and upgraded minor version. Use 0.2.x if you only want to support iOS register.