finishing of refactoring, and added date functionaility

movement towards a state graphics engine, added moment library for
date/time functionaility. run.quickie.js expects dates to be pasted as
unix time stamps with the usual "1970-01-01" epoch. (note:the timestamp
is the number of secs since the epoch.)