adding option for ports to client/server, adding arguments and config to server in general, some refactorings (trying to be somewhat consistent...