Fixed mediafile handler to return all media parts, and to handle http
range checks.