Merge pull request #1 from justinliucs/master

Merge from base project.
Run flow REST service added. Fixed some small bugs.
Merge pull request #12 from lostcharlie/master

Run flow REST service added. Fixed some small bugs.