Cleaned up convert.rb, added more funcs.
Partial TUI support. Errors on phase 1.

Ported error() to detecting if it's TUI or GUI. Also several variable
fixes for the new $options.
Added negated options, fixed [TG]UI error()
TUI conversion now works properly. Cleaned up paths

Removed old jQuery stuff, updated python folder to be "python27", and
now using File.join to join paths instead of manual stuff
Now [TG]UI use the same method for output folder
UI is now converts again after globalizing $options
Merge branch 'master' into curses

Resolved updates I had made on this side for 2.7.8 too.

Conflicts:
	conversion_files/run.bat
	convert.rb