Complete first half of the erli rewrite.

* improved code organization
* enforce more consistent coding conventions
* drop request throtteling
* redesign the internal process hierarchy
* replace the python based visitor IP lookup with a pure Erlang implementation
* replace mochijson2 with jsx
* add a  release configuration
* cosmetic improvements
* cleanup and simplify error handling code.
Further code cleanup and add utitlity functions for the coming CT test suites.