Merge pull request #13 from Garfonso/master

white space changes
added account.config kind

this kind will be used to store account config more reliably.
Currently account config will be gone after enable/disable capability
and on device restore.
added username to account config

username will be used as last resort connection between account and
account.config.
WebOS forbids to have two accounts for the same connector with the same
username. This probably is for the reason of account restore. So we will
use this mechanism here, too.
moved stuff to handle account config into it's own file.

also added two methods.
- searchAccountConfigInConfigDB searches in new account.config DB
- searchAccountConfig searches in new and old DB
and also transparently moves old info to new DB.
added account name as search criterion for missing account.config

this also requires us to transmit account.name to checkCredentials
CheckCredentials can now handle change credentials

change credentials (i.e. if accountId is given) will search
and update account config object.
Check credentials is done first after restore (not really for
installed accounts, but it should... maybe we'll need
to add a banner message on missing credentials here, sometime).
discoveryAssistant will now work with new DB only

this also makes parameters for discovery assistant much easier.
Now only accountId is really required. The other ones can be used
to overwrite account config stuff.
oncreateassistant now stores config in new DB
serviceasstant now searches config at start up

So the config object will be there for all assistants that need it.

Alos adjusted discoveryAssistant to reflect this change.
removed unnecessary global
adjusted syncassistant to new storage place

config now is stored in this.client.config not
in this.client.transport.config => this made things easier.
added alias to config in app

and cleaned up code a bit.
fixed smaller issues in account template
reworked control flow in checkCredentialsAssistant

- if credentials are changed the encrypted stuff is modified
- and also the account.config object is updated
- the assistant now blocks until everything is done
- results are returned in all error cases
fixed some bugs in discoveryAssistant

code was not really tested before previous commit. ;)
changed oncreate assistant to call super function

Yeah... didn't know that this was possible. Now we let
the parent do its stuff and then add our own stuff.

Probably we'll need something similar for onEnable someday.
fixed nasty this issues in serviceAssistant
fixed some nasty bugs in accountConfigUtils.js
added ondeletassistant

this should delete account.config object.
It is not easy to test this, because it does not run
immideately. But now config object is gone from my
emulator's db. So I guess it worked.
Deactivated purple color

webOS will select some random color for each new
calendar now. User can specify color by himself.