Fixed CPDocumentController missing method currentDocument

In this commit I've added the currentDocument method to the document controller

Also removed the firstEligibleExistingWindowController method from CPDocument
It did nothing but add confusion as it was not used anywhere else in the frameworks.
And it is not in cocoa.
added missing methods to CPDocumentController

documentForWindow
hasEditedDocuments

both are in cocoa
Fixed: CPTokenField sends focus and blur notifications

This commit adds notifications for focus and blur on CPTokenField.

Attached is a modified Manual CPTokenFieldTest that observes these notifications.

Fixes #1396
Fixed: CPCollectionView range bounds exception if shift key was held for first selection

Previously, if you held down the shift key while making the first selection in a CPCollectionView it would raise an exception claiming {-1, XXX} was out of range. This was because `firstIndex` returns CPNotFound (-1) if nothing is selected.

In Cocoa, holding down the shift key while making the initial selection behaves as if you made an initial selection.

This commit catches a CPNotFound and sets the first index to the index of the item under the mouse pointer.
Fixed: removeTableColumn does not removes column from tableColumns array

Previously the tableView didn't correctly remove a given tableColumn. It was removed in the method load (who is called by the layoutSubviews).
Now the tableColumns is removed before the layoutSubviews (as in cocoa).
It fixed also another problem, before this fixe it wasn't possible to remove all of the columns of a tableView (the last column was always displayed). This is fixed also

Fixes #1913

You can test that with the app of t00f
Fixed small bugs with _reloadAllRows
New: Added "Resources" directory to cap Framework template

Added a new folder "Resources" in Tools/capp/Resources/Templates/Framework/. As the folder is empty be default for frameworks it contains a .gitignore file to be able to add it to git.

Motivation is to prevent (spelling) mistakes when manually creating a Resource folder for Frameworks (e.g. "Ressources").
Fixed: selection in a tableView without column

Previously it was possible to select rows in a CPTableView even if there wasn't columns. It was also possible to make a drag/drop.
This PR fixes theses both problems.
Merge pull request #1870 from BlairDuncan/documentControllerCurrentDocument

Fixed CPDocumentController missing method currentDocument
Formatting: whitespace.

Refs #1870.
Fixed: remove non-standard CPDocument API "firstEligibleExistingWindowController".

This method did not actually do anything, and was not part of the expected CPDocument API.

Refs #1870.
Formatting: semicolons.
New: automatically fix ulimit when possible.

Without this fix, trying to build Cappuccino or run a jake script with a too low `ulimit -n` would cause a fatal error.

This change will automatically increase the ulimit when possible and only error out when it's not. The automatic change does not permanently affect the terminal session as it only targets the soft limit.
Merge pull request #1898 from ahankinson/fix-issue1396

Fixed: CPTokenField sends focus and blur notifications
Test: expose a problem with - CPTabView insertTabViewItem:atIndex.

Refs #1920, #1921.
Merge pull request #1938 from ahankinson/fix-collectionview-shiftselect

Fixed: CPCollectionView range bounds exception if shift key was held for...
Merge pull request #1939 from Dogild/RemovedColumn

Fixed: removeTableColumn does not removes column from tableColumns array
Merge pull request #1940 from krodelin/udos-Resources-Directory-in-Framework-Template

New: Added "Resources" directory to capp Framework template
Merge pull request #1943 from Dogild/EmptyTableView

Fixed: selection in a tableView without column