Modifications to Spout code to allow for metric registration

Fixes: #445
that's what we had before, though.