add stats. add error checks.
Merge branch 'master' of github.com:locked/haproxy-api