Better time handling.

Using Moment.js to display dates (fixes #15).
Using our own function to display durations.