Add support for new MIME::Base64 module
And pull exceptions into seperate file