#472 Added customization methods for next and previous buttons.
Code reorganization.
Corrected logic of resetting NumberedPager.