fixed issue with empty ics.
needMore boolified
try to get etag for a folder, too

it seems some server, which don't support ctag,
can give us an etag for the folder. Maybe that works
as indicator for changes, too?

Other servers (speak owncloud) ignore this alltogether, it seems.

Signed-off-by: Achim Königs <garfonso@mobo.info>
reworked loading to allow automated tests of components

Signed-off-by: Achim Königs <garfonso@mobo.info>
added test for empty ics and added httpClient mock

also cleaned up some other tests.

Signed-off-by: Achim Königs <garfonso@mobo.info>
changelog

Signed-off-by: Achim Königs <garfonso@mobo.info>
saving log in /media/internal/.org.webosports.cdav.service.log

Sometimes the service seems to hang for days, until it is either
killed or device reboots. During that time all sync attempts
are canceled because "sync already in progress". Also
it consumes quite some memory.. not good.

Usually, when I registered that issue, it was already rotated
out of device logs. So I'll try to get some logs of those hangs.

Log will be cleared every service start.

Signed-off-by: Achim Königs <garfonso@mobo.info>
fixed google resolving

Signed-off-by: Achim Königs <garfonso@mobo.info>
retry etag retrival without filtering, if filter is not supported.

Signed-off-by: Achim Königs <garfonso@mobo.info>
changelog
now writting service version to log.

Signed-off-by: Achim Königs <garfonso@mobo.info>
impreved stat processing

Signed-off-by: Achim Königs <garfonso@mobo.info>
fixes for ctag handling

Signed-off-by: Achim Königs <garfonso@mobo.info>
keep new lines in tact for file logging.

Signed-off-by: Achim Königs <garfonso@mobo.info>
fixed strangeness in quoting.

Signed-off-by: Achim Königs <garfonso@mobo.info>
improved foto storing

Signed-off-by: Achim Königs <garfonso@mobo.info>
added test for etag instead of ctag for folder

Signed-off-by: Achim Königs <garfonso@mobo.info>