added inboxprovider pagerfanta, refactored common code, added tests