update code to add mozMediaSource constraint
merge from vagou/master
support closer-to-spec format and legacy not-really-documented 'mandatory' constraints format