Added megahal
fixed compilation issues on osx for megahal
Makefile improvements
Added save_megahal to explicitly save the brain
Converted irc.cpp to run off of poll() instead of the builtin handler