Added ability to open SamReader from string, specifying either a URL or ...

...a file path. This will make it easier treat INPUT parameters in Picard tools uniformly regardless of whether they designate a file or URL resoures.
why do we need to close twice?