Changing from pages.json to survey.json
Moved some code into external survey.js
Abstracted Page and PageItem
Better handling of value saving