mail: refactoring to bp (part 1)
system/usersystem: refactoring of encryption