Started vote ending code
add some test code
MIGRATION: add quorum, end time. support vote ending
Add other vote completion criteria
Merge branch 'vote_ending' into develop