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

Let's add the Mobile SDK copyright that we use here, and in all other new files.