Fixes creation of default directories on install.

* Changes DirectoryConfigManager to create default directories
  after porting .cloudcafe folder.
* Changes build_engine_directories() to always set user and group
  owner for the engine directory, recursively, to the real_user
  on install. (POSIX only, does not affect Windows).
* Moved safe_create_dir and safe_chown to PlatformManager
* Fixed some pep8 issues

Change-Id: Id031e49fe120f4640b7f6271b7515aa1615102f9
Merge "Fixes creation of default directories on install."