Moved responsibility to compute the distance to goal, and give reward, from qlearner to node as it should be. Also, added a new piece of info that gets sent to the browser. Wrote a simple thing to catch the newly sent data in the browser.
Resolved one remaining conflict in merge.