Bug 866333: Added extra check to avoid wrong events property returned in cases, when, for example event type coincides with Object property, such as nonstandard Object.prototype.watch, for instance
(cherry picked from commit 09f7197a85475fd9fdbaf64ffeec553e86fe2da8)
Bug 866333: adding test for event names like "watch"
added URI test to stop opening invalid URIs
added tests for chrome and resource URIs
added test for ftp
closed all the opened windows
Improved windows closing
Expose web-socket API.
Bug 866532: expose prePath property on URL instances and making URL properties writable

Conflicts:
	lib/sdk/url.js
	test/test-url.js
Implement socket server.
Merge branch 'bug/socket' into bug/websocket@820953
Update tests to use socket server.
Update menuitems tutorial to not refer to the SDK 'packages' folder
Bug 878131: isPrivate() now always returns true if the new global pb service is enabled
Fix bug 880632 - Remove the Firefox 3.6 exception in test-windows.testActiveWindow because Firefox 3.6 is nowhere close to being a supported version of Firefox
Merge pull request #1035 from wbamberg/877973

Update menuitems tutorial to not refer to the SDK 'packages' folder
Merge pull request #1044 from KWierso/880632

Fix bug 880632 - Remove the Firefox 3.6 exception in test-windows.testActiveWindow. r=mossop
Bug 850367 Page worker follows redirect, refactor match patterns for page-mods
Merge pull request #1003 from jsantell/page-worker-redirect

Fix Bug 850367 Detraitified page worker, r=@gozala
Fix for bug Bug 870558 - Document support for chrome.manifest and chrome directories; r=@erikvold