fix: a js file which name `data.jsonable.js` should not be treated as JSON.
1. Make sure directories  of `logs` and `pods` exist before logging. 2. Refactor: put `startLogging` into Common.
Merge pull request #828 from Tjatse/development

fix: typo bugs