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

Oh crap, I needed access at one point and then removed the test that needed access! Will revert!