Improved version tracking.

1. Also bug for exiting from --version and --help.
Added first steps for writing compiled lua files.
Compiler can now handle writing lua dialog calls.