Ensure that a background task is started whenever -flush is called while the app is in the background. This ensures that the app can flush events within its own background tasks while maintaining the behavior of -flushOnBackground automatic flushes.
Merge pull request #57 from Newstex/pull-requests/delayed-background-upload-fix

Regression: -flush will not complete upload if called while app is in the background