added a function that determines work flow for resource at each tick. Non tested in expectations.
Merge branch 'master' of github.com:clojurecup2014/milestones