Renamed and moved various main_ variables to opt_

Now, all option variables and functions are in options.c,
and have an appropriate name.