New Config format

Now uses ConfigParser instead of poorly implementing a homebrew format.
Added support for new config format

Also cleaned up imports and added option for IP binding on the socket
(untested!).