Clean-up new API interface

Review Request #2845 — Created Feb. 8, 2012 and discarded — Latest diff uploaded

Information

RBTools

Reviewers

The legacy code is unstructured and it seems that noone has ever run it. Starting from this patch I will clean server interface until it becomes suitable for making HTTP requests. I intend to keep the chunks as small as possible in order to simplify the review process and speed-up acceptances, so some-times the logic may seem uncompleted.