Cleaned up functions of adding and updating offline cache.
Removed some old code.
Set status to first sync done earlier when possible.

Signed-off-by: Michel <info@1st-setup.nl>