initial front end changes

working towards json based communication with server (rather than making
the server generate HTML). started a json protocol outline document.