Add ol.CenterConstraint

Based on https://github.com/twpayne/ol3/tree/center-constraint from @twpayne
The code was adapted to the new extent order.