MBug: removed stale console.log's and minor cleanup.
Merge branch 'master' of https://github.com/foam-framework/foam