replace else if statements in worker thread to a map of handlers with
msgtype as kay
Add logout response message and proper login handle + some refactoring
add more futures to login handler