Imported some documentation.

Importing some documentation I started to write a while ago. This is
designed to be used as some basic personal reference for writing poly
script applications for polybot.