Reworking of asynchronous server. Followed MSDN tutorial and made it asynchronous.