Added pagination as a Function instead of singleton, renamed offset for page, unit tests
Added pagination as a Function instead of singleton, renamed offset for page, unit tests
Added offset parameter to the pagination service