Fixed y-resize distortions

started conversion to use browser history.
converting requests to use JQuery ajax api. 
restricting d3 usage to SVG manipulation.