Update ResourceHandler.cs

Extended the resource handler to allow a stream to be passed directly and extended FromFileName and FromString to support a overload where the mime type is determined from the file extension.