Enable registration and unregistration of different types of devices

Fixes #6 
Now supporting android, windows phone (both use `apids`), and blackberry.