Added contexts parameter to getTags snippet. Resolves #10
Added handler for onResourceDuplicate. Resolves #9