Exposing a way to execute commands via API

Simple way to execute commands via API, inspired by [this thread] (http://forums.activiti.org/content/there-are-motive-not-exist-exposed-api-setprocessdefinitionversioncmd)