Add file logger.
Log sync manager actions.
Log app upgrade.
Log JSON imports.
Better distinguish between automatic and other sync starts.