Merge pull request #648 from bhariharan/master

Replacing NSLog with debug level logging
Adding ability to customize SmartStore encryption
Merge pull request #653 from khawkins/custom_ss_key

Adding ability to customize SmartStore encryption
Moving the assignment of identity data
Merge pull request #656 from khawkins/move_identity_assignment

Moving the assignment of identity data
Bringing in bug fix from internal git