sockvnc - major refactor of argument code