Port haproxy.rb to Rackspace Monitoring Agent Format

I also refactored this to be more error tolerant and take arguments.