Adding http_basic to device/channel registration

Uses the ```window.btoa()``` function for the encoding.

_However_, this is not available in all browsers...

A Polyfill is available here:
https://github.com/davidchambers/Base64.js

**Question:** What is needed for the inclusion ? (Or do we just document that developers may have to include the lib, if they want/need etc)