First version of interaction with long poll server is ready. It is ugly. But it is working.