Set language

Includes small refactoring - pass Connection reference to HTTP requests instead of copying the parameters from Connection