Add support for iOS 7 native Base64 encoding

Also add some tests for base 64 encoding