Update password.php

Improved the schema function so that it sets the length variable.

Added a helper predicate called tagged_hash_string that checks whether a string is of the form "{SHA1}" . 32 hextets.

Updated pre_save to tag the hashes it computes with "{SHA1}" as well as making sure not to re-hash passwords.