Move exporter to main and listen/interval to flags
Make collector testable and add native test