Add new-style API compatibility for VoteHandler.

Update VoteHandler so that you can actually write a VoteHandler using New API syntax.