WIP restful: addition of pagination

@greut i will re-design the method(parameter and philosophy refactoring)! Forget what you saw in the paginate method!