Rewrote constraint application algorithm to be used consistently by
getUserMedia and applyConstraints.

Changed wording to say that smaller distances should be preferred.