Fixed compile errors and added a bunch of unit tests for SalesforceSecurity library.

Let's switch over to `base64EncodedStringWithOptions:` here, now that we're iOS 7.