Merge pull request #1 from andrepl/master

Cache state in metadata
added event cancelling code
first wave of testing
TagAPI Support.