A lot of bot code. Pretty much finished botside except for logging and pisg.cfg support.