Added a bunch of global options.

Global options are almost done, only the harder ones are left out.
(Which deserves their own function). After completion, LuaOptionParser will be separated
to another file.