Refactored base64 internal lib.
Refactored devmanager to be JavaScript standar complient and to avoid poluting global scope.
Refactored nfc lib to be JavaScript standard complient and make use of constructors.
Refactored UTIL functions to avoid poluting global scope.
Merge branch 'b64-refactor'
Merge branch 'devmanager-refactor'
Merge branch 'nfc-refactor'

Conflicts:
	src/devmanager.js