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
Merge "refactor cmd processor to make it slightly easier to test"