Added sha512 encryption to database passwords in preferences and teamdata, fixed user provider roles. Unit tested logon, logout, using database and in_memory user successfully.