Added support for basic auth for rest file resource and download file