restful: addition of pagination

What about following simplification:
```python
keys = ("first", "prev", "next", "last")
links_string = ",".join([links[key] for key in keys if key in links])
```