Added a test for proper acl/meta resources when creating a dir through PUT.
Fixed check for dirs when building the resource paths/uris. Return proper Link headers when using PUT.