added delete hostname for server

add some sys.exit with better error codes.  still need to replace
a lot of exits with the correct error codes