Fix tabs.
Move query methods on to an instance.
Replace Hpricot with Nokogiri and simplify.
Improve Traffic history handling, disable other actions.