Background upload with retry solid...

Ooooh robust background upload with retry with exponential holdoff,
error recovery, immediate retry on becoming active and more. Better
than Android now. I like. Dont ask me to remember this stuff a week
from now though.