Better command line interface

* autodetect midi->text or text->midi depending on input
* leave off arguments or use - for stdin/stdout