added toArray() functions, changed searchHITs and getAssignmentsForHIT to return full objects.