Added "hits" session counter and outputting referer on log out.