peacified jslint
removed onCapabilitiesChanged service end point

We don't have an assitant for that...
and webos does not use it anyway, it seems.

From the docu, it does the same as onEnabled, only
a bit differently.
do not print password in the logs.
added OnCredentialsChanged assistant

This is necessary if we change user/pw from the
account app.
extracted getTransportObjByAccountId from discoveryAssitant

this is also needed in checkcredentials assitant
for already existing accounts (i.e. changing user/pw)
to get URL from db.
now credential changes for existing accounts works

for this checkcredentials needed to be adjusted
to possibly get a transport object from DB which
contains the URL.
some smaller fixes in discoveryAssistant
got rid of unlockCreateAssistant method.
do not attempt sync if config is incomplete

this was detected earlier... but control flow
did not end properly.
CalDav.js fixes

- fixed some possible undefined-access issues
- some whitespace fixes
- discovery changes.. this includes a hack for
owncloud, which should now work ok.

Basically discovery is a lot more aggressive now.
It will check the user supplied URL, the
host/.well-known/caldav and carddav URLs, and
tries to replace caldav/carddav from the user
specified URL. All those places are queried for a
user principal (i.e. webdav home folder).

On all the results and all the URLs we query for
addressbook/calendar-home-set, i.e. root for contacts
or calendars...

If we find the home-set, sync will normally work ok.
Discovery is done only once per created account
(unless the discovery assistant is called manually),
so we should be fine here.