restful: addition of pagination

* Adds a simple pagination method that returns the
  requested data given a number of a requested page
  and also generates links that will be added to
  the response header.

* Adds some tests with dummy data to test the functionality.
  The tests pass.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>