added a default port as a constant
created a separate function to setup server

not using the standard ListenAndServe anymore. creating a Server
to be able to control things more closely. for now not doing much
though.
Refactored the server creation part