Can specify repository policy

This commit allows user of the repository resources to specify the policy (SNAPSHOT or RELEASE(default)) of a repository.
This does not break previous API.