Yesterday UI updates.
too much at once.

 * pull calendar logic out of app.js and vendor moment.js
 * give some sanity to the log data structure
 * clean log logic