Update title and author commands.

So that they only invoke the callback after updating the text meta data.

Also add moment dependency.
Synchronize date with title.txt.