Adding base64 function

Adding base64 function and spec test.  Included a bonus fix to
validate_slength_spec.rb to put the expectation message in the right
place.
Merge pull request #159 from fiddyspence/feature/base64

Adding base64 function