SHA512 for user logins, authentication script

User logins now use SHA-512 password hashing for extra security.
Authentication script added to redirect depending on login success or
failure. Still needs work to use sessions in order to do advanced
redirecting and message notification on failed login.