Fixes based on SDK tests (fixing validation messages, error handling, cleaning up some user-related tables)
Removing tests that have been moved to the SDK project
Merge pull request #292 from alxdarksage/sdk-fixes

Fixes based on SDK tests (fixing validation messages, error handling, cl...
Merge pull request #293 from eric-wu/develop

Add X509 certificate factory