Replaced config parser with protobuf.
Merge branch 'api_integration' into config
Minor fixes.