Fix for rails 4.1

Force `session[:visit_time]` to be an instance of `Time`. Rails 4.1 [changed](http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#cookies-serializer) their cookies to use JSON, which converts `Time` to `String` when deserialized.