Fully implemented collection handling for resources.

Added .htaccess file to repository.