Implemented retry for http trackers, moved some stuff into global
variables.