Make small refactoring in Client. Start adding logic to transfer messages to browser.