WIP restful: addition of pagination

Ok, now i get it! I will correct it.