standalone mac (cmd-line) executable

Brought back some of the code from the .app bundle,
but without the dir picker parts. The resulting
exe includes all its resources and dependencies locally
but is intended to still be run from command line.