added support for counting ballots to json repository, and added containsBallot() method to netvote repository interface