many improvements in anticipation of change of input format from Text to JSON
major revision. first draft of server completed according to specification. next up: revision and commit of frontend, followed by integration and testing