Move the date handling to js/data/util/datetime.js instead.

Also remove moment