Added DNS Resolution support. Fixed various bugs.
Various bug fixes and improvements
Refactor
General refactoring