added version and default vars
added validateHostPort() to common class
added connections and handlers vars to server class
and cleaned up imports