Detached server and connection logic to another class (have to add tests for it).
Returned profile image setting to main thread.