Add pagination to code submissions index. Fix #527