Base64 encoding and decoding
Portions sourced from (https://gist.github.com/shpakovski/1902994).
Functions - API calls offered directly by the extension
hs.base64.decode(str) -> val
hs.base64.encode(val[,width]) -> str