Prison metadata gets stored in the encrypted link (state).
Prison metadata is retrieved from the encrypted link or added when missing.
Added the pg gem.

[#78038926]
Added active_record configuration.

[#78038926]
Added a model to represent metrics for a single visit.

[#78038926]
Added the database_cleaner gem.

[#78038926]
MetricsLogger now uses VisitMetricsEntry.

[#78038926]
Added a migrator.

[#78038926]
Removed no longer used pieces, changed templates, adjusted CalculatedMetrics.
Removed references to redis from the app, as we're no longer using it for caching.

[Finishes #78038926]
Attempt to fix a bug in logstasher.
Updated remote repository ref for logstasher.
Added missing weekly metrics.