clean up and bugfix all the ip/port local path handling, much improved
update chrome demo app too