Fixed: CPMenu bar selected background color

- Previously the selected background color didn't have the right color.
Merge pull request #1910 from Dogild/MenuColor

Fixed: CPMenu bar selected background color
Fixed: parameter range of CPColor colorWithHue:saturation:brightness:.

Previously, + CPColor colorWithHue:saturation:brightness: took its parameters as degrees and percent (e.g. hue between 0º and 360º, saturation and brightness between 0% and 100%). However, in Cocoa the components are given as factors (0.0-1.0) like other colour methods.

This fix makes + CPColor colorWithHue:saturation:brightness: work like in Cocoa.
Fixed: - CPColor hsbComponents range.

Previously, - CPColor hsbComponents returned degrees and percents. With the latest change to - CPColor colorWithHue:saturation:brightness: this was inconsistent.

Now - CPColor hsbComponents returns its components as factors in the 0-1.0 range.
New: - CPColor hueComponent, saturationComponent and brightnessComponent.
Test: new CPColor HSB tests.
New: record the source filename in SyntaxError.
Fixed: CPColor colorWithHue:saturation:brightness: parameters not clamped.

Previously, the parameters to CPColor colorWithHue:saturation:brightness: could be specified below 0 or above 1.0.

Now the values are clamped so that values below 0 are taken as 0 and values above 1.0 and taken as 1.0.
Fixed: CPColor colorWithHue:saturation:brightness: returning undefined.

A hue of 1.0 would cause the CPColor colorWithHue:saturation:brightness: method to return `undefined` instead of a CPColor instance.
Fixed: CPColorPicker not working with fixed CPColor colorWithHue: implementation.
New: + CPException raise:format:.

This method allows the exception reason to be a formatted string with parameter replacement.
Merge branch 'refs/heads/slevenbits-cpcolor-hsb-fix'
Fixed: CPDatePicker freeze when hidden

Previously the CPDatePicker freezed when trying to hide it when it was the firstResponder.
There was an intern problem in the CPDatePickerTextField about the nextKeyView. That's why there was a boundless loop and the freeze.
This PR also fixed a big about the previous and next textField in the CPDatePicker.
It also fixed a bug about the CPDatePicker when it becomes firstResponder.

Fixes #1909
Fixed: Trying to open a CPPopover in a secondary platform window opened in the main window

Previously, when opening a popover on a view from another platform window, the popover
was actually opened in the main window. This fix ensure to set the correct platform window
to the _CPPopoverWindow by setting it to the [[positioningView window] platformWindow];
Fixed: CPAlert always shows on main platform window

Previously, a CPAlert was always shown on the main platform window. This behavior could result in a feeling that the application was hanging because of the modal nature of the alert when users are looking to another platform window. This fix ensure to set the CPAlert window's platformWindow to the current key window using [[CPApp keyWindow] platformWindow].
Merge pull request #1916 from Dogild/DatePickerHidden

Fixed: CPDatePicker freeze when hidden

Reviewed
Merge remote-tracking branch 'upstream/master' into CPLayoutConstraint
Renamed and added nib/cib tests. Try to fix stay variable for CPLayoutAttributeRight. Failing in test subview 2.
Fixed stay variables (it seems they are not needed at all except for the windowView). Added exemples for (view1)-10-(view2) and center alignment between 2 views and between a view and its superview. It just works \!
center alignment tests. Fixed hugging / compression NS decoding. Subclassed -intrinsicContentSize in CPButton. _minimumFrameSize is not like -intrinsicContentSize ? Added tests for hugging/compression.