Add new dependency moment.js

Use it to better compare dates when trying to determine whether a message falls
on a different day.

Also upgraded some dependencies' versions.