lib/base64: altered function definitions to make them node.js friendly.
Added tests for base64 encoding and decoding functions, added atob and btoa dependencies.