Add backgrounding support
Merge pull request #277 from bgfoshay/master

Replicator now runs in background, using iOS background-task API