Refactoring to use terndemo as it is shipped by tern...

Tern demo provides basic capabilities that I am reusing.  These
capabilities have been moved to its its terndemo.js for eaier upgrades
to changes from tern...
Also added support for reading the tern-port file in order to
automatically connect load the port that remote tern uses at startup