add output flag to nbconvert

fixes #3799

Cannot do it only in Writer as the basename can be used in templates as it is used for resources `to map to <basename>_files`. Here is my try on it.

Also we could be good practice to catch UsageError at high level and sys.exit only in one place.

ping @jdfreder.