Allow entering dates in input boxes; layout improvements

squashed changes that's reqbased on top of latest version (which is now based on moment.js instead of date.js) of the upstream repo