give lambdabot a chance to log in before pinging server

This should fix #87. Note that sending PING commands during connection
registration is not specified in RFC 2812.
Merge remote-tracking branch 'nomeata/master' into features
Merge remote-tracking branch 'purefn/master' into features
disable a couple of plugins
increase maximum message length
update @version output
patched libraries
log some system commands
modify @faq output
add current configuration and supporting scripts
update Pristine.hs
HACK! Add regular flushing of module state.

This is not the right way to do it, since now there is a slight possibility
of two threads flushing the state concurrently, resulting in a big mess.
make writeGlobalState more robust

State is now written to a temporary file and moved into place, making
the operation of writing the state atomic.