Add API functions to Vote plugin

This is in preparation for #10
Might also help with other voting plugins in the future