The selection of the “best” version to stream for a given connection and client should already be working:
If it does not, you may need to pursue that in another thread for troubleshooting.
As for the multiple versions of the same movie, that’s been requested elsewhere. This is the best I can find right now [Edit: Otto’s links for this feature below are better]: