1: You will have to implement a traffic trading script with youre TGP script. You will find more about this in the userguide to AG.
2: I use
http://www.openads.org/ to keep track of both sold space and most sponsor links.
3:
http://www.chiark.greenend.org.uk/~sgtatham/putty/