Cleaned up the ObjectSetResource code considerably, and added comments to the code.

The DomainDAO is no longer required by the ObjectSetResource.