FORGE-1186 Added a CommandTester API

This is more or less similar to the WizardTester API.

Refactored the impl package as well, creating separate packages
for the command and wizard implementations of UIBuilder.