Added ConnectionManager

Removed redundant #pragma comments, added ConnectionManager.
Added machine name and username to auth.
Added reconnecting
Fixed memory allocation bug
Missing files