Session keeps track of current and previously visited paths.
This will be updated for session unless the new current is the
same as the old current.
Auth_handler will redirect to previous url only if their was a
previously visited page.  If not, it will redirect to home.
Fixed a problem with set function for session_ets, it needs to
check for 0 position of tuples rather than position 1.
Cleaned up some code.