Auto-discovery and better collections support

Hi guys,

I got my first working but incomplete support for auto-discovery (see http://www.macti.ca/wiki/display/CAL/CalDAV+and+CardDAV+handshake) and also better collections support (to add principals, outbox, inbox, etc., with links between them).

To connect to a CalDAV store, you would only need to do:

  DavStore store = new DavStore("username@mydomain.com", "mypassword");

And if the DNS entries exists and that you use a server that supports the well-known url thingy, it will find everything (principals, calendar-home-set and calendar collections).

I would like your input on this. For example, in my DNS server, I have this:

caldav.macti.lan.                     10800 IN A        192.168.0.150
_caldav._tcp.macti.lan.               10800 IN SRV      10 1 8008 caldav.macti.lan.

If I login to my CalDAV account with:

  DavStore store = new DavStore("probert@macti.lan", "mypassword");

It will find everything for me.