make rest controller more generic to support additional workflows
Merge pull request #117 from symfony-cmf/make-rest-controller-generic

make rest controller more generic to support additional workflows