Fixed a bug in task cancellation that caused hanging tasks
Added support for choosing between the polling and watching provider

Use either endit-polling or endit-watching as the provider name to
choose.
Clear request directory on startup

The patch also extract a common absract base class for the two NearlineStorage
implementations.