Option for basePath in resource listing

This adds an option 'resource-base-path' which enables the user to set the basePath-option in the resource listing.