adding a dispatch class to take care of handling connections intead of server
adding version header and cleaning up some formats
added logfile option to cli params