Fix bug in CPSegmentedControl not reducing his size when removing segments
Add manual test for CPSegmentedControl
Fix CPWindow -canBecomeKeyWindow and -canBecomeMainWindow to match Cocoa behavior (and misleading documentation)

Minor code formatting cleanup as well
Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty

For example, the following CSS property names all resolve to the same correct JS equivalent for the current browser:

 * CPBrowserStyleProperty('TransformOrigin') -> 'WebkitTransformOrigin'
 * CPBrowserStyleProperty('transform-origin') -> 'WebkitTransformOrigin'
Merge pull request #1713 from milestinsley/CPBrowserStyleProperty-fix

Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty
Updated CPBrowserCSSProperty to support camel cased style property names and convert them into valid browser-aware CSS properties.
Improved the reliability of CPBrowserCSSProperty by checking for the browser prefix *before* hyphenating the camel-cased string.

 This has the added benefit of ignoring unknown/unsupported prefixes, providing the property itself is camel-cased.

For example:

"LinearBackground" -> "linear-background"
"Linear-Background" -> "linear-background"
"linear-background" -> "linear-background"
"fooLinearBackground" -> "linear-background"

and

"WebkitLinearBackground" -> "-webkit-linear-background"
"MozLinearBackground" -> "-moz-linear-background"
etc..
Merge pull request #1713 from milestinsley/CPBrowserStyleProperty-fix

Improved support for converting CSS properties to their JS equivalent in CPBrowserStyleProperty
Full platform windows and popovers can become main
Fix a bug where CPURL was not encoding self._baseURL and self._string
Add missing import
Formatting.
Fix import.
Remove wrong import string
Merge branch 'master' of https://github.com/cappuccino/cappuccino
use the [CPPlatformWindow primaryPlatformWindow] to position the tooltips.
Fix regexp in XcodeCapp parser. Thanks to Andrew Hankinson
Fixed: XCodeCapp reads the user's shell environment

Before this fix, XCodeCapp always ran under /bin/bash, causing problems when trying to source the files from other shells, like /bin/zsh

This fix reads the shell information directly from the user's environment and XCC to run using that shell.
Minor formatting changes
small style fix