renaming endpoint to deviceToken and adding JS doc for the 'unregister'
Refactoring the registerWithServer function to accept an 'options' object. Adding more JSDoc to the file