enforce autobahn 0.8.0+ compatibility
implementing collecting of metrics and dumping to file

Metrics are collected during runtime and can be serialized to file
(for further processing through the diamond FilesCollector) using the
write_metrics_to_file method. This is currently neither called, nor
are the metrics reset periodically.