Practically fully (except some parts of lib/database/init.js) reformatted due to Google JS StyleGuide.