fixed issue with periodic sync acitivity

Periodic sync activity was not properly restarted.
tried to improve code quality

hope I did not mess up too much, need to test a bit.
My plan is to create some automatic tests, too. Hope I'll get
to that.. should help development a lot.
fixed two issues in httpClient_legacy with brittle connections
added some urlschemes
fixed loading issue
log output
0.3.5
Merge pull request #43 from webOS-ports/Garfonso/work

fixed issue with periodic sync acitivity