Run flow REST service added. Fixed some small bugs.