[counters] Add callback to register foreign data sources.
[counters] Add factory func for synthetic counters.
[counters] Add/change API and cleanup the agent a bit.
[counters] Export user counters.