Factor out code for watching resource events
Factor out code for watching resource events

vrutkovs/osbs-client,projectatomic/osbs-client,jpopelka/osbs-client,DBuildService/osbs-client,bfontecc007/osbs-client,DBuildService/osbs-client,jpopelka/osbs-client,bfontecc007/osbs-client,vrutkovs/osbs-client,projectatomic/osbs-client