adding http basic to the unregister()

Similar to my previous "patch" on the register function:
* using ```btoa()``` for base64