fix for menu enabled state not beeing visually updated upon change
fixed: .insertAttributedString.. does not coalesce
unit test for coalesce on insert
whitespace formatting
added manual test
formatting
double var fix
Fixed: unsigned delegate methods of CPTokenField erased by CPTextField

Previously, the unsigned delegate methods _implementedDelegateMethods was erased by the CPTextField, so some delegate methods didn't work any more.
This PR just renames the unsigned delegate methods to _implementedTokenFieldDelegateMethods.
Added: added unit test for CPTokenField
Fixed: CFHTTPRequest now accepts the withCredentials property

From the original PR:

Currently, CPURLConnection has no way to access the withCredential
property of an XMLHTTPRequest, meaning we can't utilize cross-domain
calls using CORS in our applications.

This commit adds the withCredentials property to CFHTTPRequest.

Refs #1296
Fixed: CPURLConnection now accepts withCredentials

From the original PR:

CPURLConnection was modified to reduce the withCredentials flag to a file-scope member. This has been done to facilitate use of withCredentials when a developer cannot modify the CPURLConnection manually (e.g. https://github.com/wireload/Ratatosk/blob/master/WLRemoteLink.j, line 466).

Refs #1296, #2138
Working #2144: Reintegrated changes from #2138 and fixed test fail.

Now using instance variables for withCredentials.  Also fixed test failure.
Fixed: change variable name

Changed "returnValue" to "connection" - more descriptive.

Ref: https://github.com/cappuccino/cappuccino/pull/2144#commitcomment-6769088
Formatting: Cleaning up CPURLConnection

Removed some extra whitespace and added a newline at the end of the file.
Merge branch 'fix-cfhttp-cpurl-2141-2138' of github.com:ahankinson/cappuccino into fix-cfhttp-cpurl-2141-2138
Formatting: CPURLConnection
Tests: Updating test for CPURLConnection

This test checks to make sure the CPURLConnection withCredentials functionality works.
Test: New CFHTTPRequest test

This commit adds a new test for CFHTTPRequest, which at present only contains the test for withCredentials
Fixed: popoverWillShow called when the popover is opened

Previously, the delegate popoverWillShow was called even if the popover was already shown. This PR fix this issue.
Also, it was possible to launch several times the method orderFront of the _CPPopoverWindow from the CPPopover.
For example with a double click on a button. Now the _CPPopoverWindow has a var isOpening and nothing else is possible during the opening of the popover (not possible to close or to click somewhere else etc etc). This work as in Cocoa.

Test app in Tests/Manual/CPPopover/
Fixed: escape on a panel or popover breaks the key chain event

Previously when hitting escape on a CPPanel, the key chain event was broken.
Now when the user hit escape, cappuccino do the following process

- Check if the firstResponder or the chain of the nextResponder implement cancelOperation:
- If not, performKeyEquivalent on the firstResponder and so on
- If not, call the method cancel: on the firstResponder and the chain (not in the case of the CPPopover)

Previously, a complete: method was called if the user hit escape on a void window. This is not a feature of Cocoa, @apajarita or @aljunberg can you confirm that ?

This commit is related to the commit #2139