small fixes
extracted interface, updated tests
updated config with the new services, added routing for pages
updated the inbox controller and outbox controller to use pagination