restful: addition of `validate` function in RestfulPagination

You can write
```python
"Invalid per_page argument ('{0}'). Number of items "
"per pages must be positive integer.".format(self.per_page)
```