Add very basic identity managment. Fix encryption problems.