Upgrade security

Replaces the old sha1 hashing algorithm with bcrypt and creates methods to allow legacy hashes to auth and then be replaced with bcrypt hashes.