add autocompile support, controlled via --compile (default) and --no-compile

Discussed on the mailing list a little already, but this PR may be easier to comment / track changes.