Added paginate() method to the AppModel