Refactor dynamic UI base classes to be used with workflows.Action.

Change-Id: If993e30d51ad99e3a2a8affbfda0b789975a4b4f
Merge "Refactor dynamic UI base classes to be used with workflows.Action."