add RecordMetric to visitorinteractor
Add basic support for metrics recording to API