main_nogui: add "--duration" option

Allow specification of how long main loop should run.
travis: try running exporter