Contentstore streaming range

Currently, users can only download ContentStore files from first byte to last byte.

With this change, when a request to the ContentStore includes the HTTP "Range" parameter, it is parsed and StaticContentStream will stream the requested bytes.

This change makes possible to stream video files (.mp4 especially) from the ContentStore. Users can now seek a specific time in the video without loading all the file.

This is useful for courses with a limited number of students that doesn't require a dedicated video server.


Testing : Upload a .mp4 in Files & Uploads, add a Video XBlock in a Unit. You can now load the end of the video without loading everything. I tested it on Chrome and Firefox for mp4 videos.
I don't know what is supposed to happen for a range request for something else than "bytes", so we answer "Bad Request".

Only "bytes" requests are supported.

And we check that the request can be split around "=" and "-".

This is to parse "bytes=first-[last]".

I'll add some comments if this is not clear enough