Log user visits to analytics pages

Creates a new table in the models called AnalyticsVisit and adds a row every time a user visits an analytics page with the time and duration of the visit.