Merge pull request #16 from Garfonso/master

Renaming and huge restructuring of service endpoints and assistants
app now complains if run directly

should only be run from account manager.
uri for data-objects should not include host and so on.
improved logging a bit.
path now always is the complete URL for Caldav.js methods

Reworked Caldav.js to now work properly for multiple servers
at the same time.
Changed the API to now include always the full URL in
params.path, so that the http connection can be build on
demand. Also the setHostAndPort method is gone.

This changed folder search a lot.
Also this allowed sendRequest to now retry on a failed
connection and not wait for the timeout.
added message to mojo app to tell the user to run account app

instead.
logging improvmenet in CalDav.js
allow deletion of recurrence rules from server
added useful error messages to checkCredentials
resolve caldav urls for known servers

known servers can be configured in urlschemes.js.
Basically you define a search string and the corresponding
urls for checkCredentials, calendar-home and addressbook-home.

These will be used during checkCredentials and discovery if
url contians the search string.

The urls can contain %USERNAME% (only once currently) and
a %URL_PREFIX% which will be replaced. URL_PREFIX will be
everything that was before the URL, this is for local
installations of owncloud or egroupdware.
mojo-app: added convenience methods

added a combobox to select accounts and buttons to easily
trigger slow sync, start discovery and start a sync.

Makes debugging a bit easier if no command line is available.

Currently only in mojo app, will add that to enyo app, someday,
too.
fixed ical issues that let to events not being displayed

in webOS calendar app anymore. rrule NEVER is allowed to be
{}. If no rrule, set it to null. Remember that. ;)

We set rrule to null in conversion. This allows a null value
to override a valid value in the db. This is necessary if a
event changes from recurring event to a single event.
reworked logging a bit more

logging now makes sure everything goes into system log.
System log usually cuts messages after 500 chars or so.

Also added new log type for parsing in caldav (which is
VERY verbose, but necessary from time to time).
redirections to same location would lead to endless loop

Yes, this is a server issue (I look at you, owncloud!). But
server issues should not lead to issues on device, especially
not endless loops which include data transmission (urgs).
reworked httpClientCache a bit more

sadly the "connect" event fired only after the first request..
so basically the new method never fired.

I changed it again to just keep the objects. This now still has
the advantage, that errors in httpClient are noted and
we try again immideately.
fixed small issues with discovery.
fixed issue with getting uri from folder...
fixed issue with rrule not disappearing in db.
changed downsync to load 10 items at a time

and then store them in DB. This should keep the memory footprint
small even during bigger downloads.
Sync framework will call the download method for every ten items,
until we tell it to not download items anymore.
sync now waits for entries in a folder to be deleted.

This never caused an issue for me... but theoretically the sync
of for example events could already be started, even when the
deletion of all events in a calendar that was deleted on the
server side, was not yet done. Pretty theoretical... but now
it can't happen.