Modified Pager

Changed some variable and function names, changed the main element
structure, make the back and forward button name configurable, and fixed
several bugs.