Added get_all_assignments

Added ability to get all assignments rather than just one page of
assignments. Also moved some pagination logic into a separate function
so that it could be shared with get_all_hits.