Modifications to Spout code to allow for metric registration

Fixes: #445
We need to be able to access the metricFactory from FlatMappedSchemeSpout (line 36)