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

Same with setters: `store.keyStoreKey = ksKey;`