Added a lot of bug fixes primarily related with server socket binding
and client messages and username validation. Added thread optimization.