Added ".dir" handling.
Experimental support for .content.xml and .dir updates.
Full support for .dir and .content.xml.
Code cleanup.