Full Ajax Paginator

Working ajax paginator on all pages + error checking on paramets of
pagination. If pg number typed by user in browser link is larger than
total pages available then last page is display, if is provided a String
or negative number then first page is displayed.