Move outbox to services
Refactor outbox to be an angular service