Merge pull request #1 from eode/master

Pull request for (extremely) basic GUI
Merge pull request #2 from eode/master

Include missing changes from GUI
removed useless 'foo' file
modify .gitignore for hg users.
- Many changes relating to UI and Bot communication.
FIXED: Bot now shuts down when GUI shuts down.
FIXED: Bot no longer gives an error message when shutting down when the GUI
       is not running.
IMPROVED: 'start' method in bot.py is now divvied out into different methods,
          so that it is cleaner to look at and understand.
IMPROVED: standardized references to "messages" "events" "gui events" (and
          anonymous tuples) to use the same name (Message) in documentation,
          and improved clarity of code.
ADDED: Lots of documentation for Kyle in case he wants to add something to
       the GUI.
ADDED: Hook to handle GUI closing
ADDED: Hook to handle bot closing
ADDED: A set of message names for which only the newest packet matters.
       This is probably going to be the typical case, in which case we can
       discard a good number of messages from the bot.
ADDED: Message() class (extremely lightweight named tuple) for message passing
       (converted existing anonymous tuples to the Message named tuples)
optimize pathfinding a bit, small pylint fixes
fixed missing brackets
Fix gui bugs with naming and logging
fix error in sending bot name, incorrect log.error reference
Example edit
Added yapsy plugin code.
removing yapsy -- not really useful
Basic plugins framework, gui<->bot coupling cleanup, more..
ADDED: Basic plugins framework -- plugins to be added in the 'plugins' folder
       ..nothing works with this yet, it's just the module loading, etc.
ADDED: change so that when it's on my system, it uses me as master by default
FIXED: cleaned up the gui<->bot coupling.  No more error messages on exit
FIXED: GUI now allows the bot to initiate the exit on ctrl-c.
pathfinding now uses much less memory per node.
Merge branch 'master' of github.com:jpmarno/TwistedBot
added logging of errors in gui.py
plugin fixes, moved 'system' verbs to plugin system as test. Added context to plugins.
Fixed annoying bug in behaviours which caused bot crash when path could not be found.
Fixed bug where unknown commands were improperly handled.
Removed needless import of 'Message'