Base helper stuff done.

Okay, that is all the major bits I need to make the bot. Will finish and
play with the bot tomorrow.