Improve command-line arguments.

Support for directory arguments, compiling to same directory via -c
and replacing es6 file extensions.