Expose current page number during pagination

This allows the current page number to be accessed from templates using `env.curr_page`. 

Next and previous page numbers can be inferred by testing their presence and derived using `+1` and `-1` with the `curr_page` value.