Modified the handler to work with the new Boundary Events API.
Merge pull request #30 from vtereshko/master

Changes to Events API