Fix which re module gets loaded.

Modules loaded from the lua path seem to have priority over modules
loaded from the automation paths.
Fix treatment of fad and make replacement slightly more robust.

When the script was ported to moonscript, a line of logic got inverted
(528), causing fades to be simply deleted instead of replaced with a
transition.

Additionally, the old logic would fail to replace \fad() tags outisde
of the first override block in a line. This should be fixed now.
Fix transform format string.

This helps makes things works betters. Or at all, really.
Fix config writing.

Because nil isn't a filename.
Switch all logging to debug and warn functions.

They also automatically append linebreaks! How wonderful for lazy
people!
Fix comparison to nil.

More batshit insanity from moonscript here.

To do forward declarations, you have to prefix the variable identifier
with `local`. But `local` is also used for shadowing, but it also has
to be a forward declaration if you are shadowing a variable. Prefixing
assignment with `local` does not work.

And if you forget to put it before your forward declarations, well,
then it attempts to do something like `local _ = fdeclvar`. What.
Formatting?