Create writer and handle environment variable

To handle better with generating configuration and resolving variables,
new modules are introduced - ConfigWriter and Variables.

Bug: 123722631
Test: m -j && atest

Change-Id: Ibd44d5f93d566ce6d9bc04d474de83ec1e5e8ff4
16 files changed