Merge pull request #35 from dimagi/new_casedetails-mwhite

New casedetails mwhite (WIP!)
fixing pagination corner cases on single page results
Merge branch 'new_casedetails' into new_casedetails-mwhite