Encrypted fields management

Encrypting fields in database
Patch for compatibility
Adding tests
missing DS authentication for travis