Rebase pull request #265 from lodejard/dev

Rebased #265 on top of latest aspnet/dev
Hmm yeah the "next page" stuff is rather important. It's code from @davidfowl commit here: https://github.com/aspnet/KRuntime/commit/e8f059f69bd2a022a33d41f43213f6ae3ecfee0a