Merge pull request #826 from dbreese/unstable

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