Added PaginationResult class, and changed Submissions.getSubmissions to return a PaginationResult, to allow paginating the results.