Add document.writeln in chrome apps.
Merge branch 'master' of https://github.com/foam-framework/foam