Setup first SESSION check

Merged the account and keyring arrays into one for ease of use. Fixed a
couple logic holes in the login procedure.
Renamed var to $key
Check for key on tracking-view
Check for key on tracking-history-report
Check for key on tracking-history-page