clean rest paging classes and make them compilable, make an organize
imports over the whole project