framework for supporting non-selenium commands via execute()

and refactoring