tsr: improved api is command test.
tsr: added initial collector cmd.
collector: changed package to collector.
collector: added runner.
tsr: using flags in collector cmd.
tsr: running collector.
tsr: registering the collector cmd.

Closes #404.
using tsr to run api and collector.