Issue #962: Add ballot_get_ballot_by_id to ballot_box API
Issue #962: More ballot box API work

Add several functions to query decisions and one to get ballots by
contest.