Substantial rewrites to most files

* lib/gaidaros.py and bin/run_gaidaros:
 - move imports to top of files
 - change some lists to tuples for speed
 - syntax cleanups
 - change some flags from 0/1 to True/False
 - improve commandline exec behaviour
 - remove "compile:" handling (seems not useful, and slow)
 - make default handler split LFs only
 - fix setting/sourcing handlers
 - add setting handler names for e.g. logging
 - improve error checking
 - separate out setup function
 - set binary string IO and unicode internally to help multilingual/binary
   handlers
 - fix read-blocking/looping bug
 - require handle_request to always return only tuple - not string and/or, for speed
 - add socket setup to "try" block with socket-close "finally"

* TODO.rst:
 - improve timeline
 - add improvement