refactor cmd processor to make it slightly easier to test

* make logger global
* create methods for setting up of parser and jjb configuration.

Change-Id: Ia8d16e74e8a1097a013512fb624f032b1d085d17
Allow using template variables in "defaults" field.

Change-Id: I876ab7fa61258e84b00a67325aeb9234aff8fa62
Merge "refactor cmd processor to make it slightly easier to test"
Merge "Allow using template variables in "defaults" field."