Added check_credentials().
Renamed hash.py to auth.py.