changes to make lint happy

* name function _btoa instead of btoa
* single per function var declaration blocks
* indentation per lint preference
* wrap entire file into a use strict function
Correct license
Fold btoa into invoke.*