Improve proxy handling. Simplify several services code.
Signed-off-by: Dmitriy Pavlenko <dmitriy.pavlenko@sysgears.com>