Add viewEvents support

Fixes #20 and partially fixes #3.