add shepherd primitive for singleton-scoping
Merge pull request #118 from Medium/nick-singleton

add shepherd primitive for singleton-scoping