New feature

Log's out user when idle for 1 hour.
Code clean up.