docs(guide): fix some invalid javascript in directive documentation

Use double quotes to maintain consistency with other HTML
docs($q): fix a few typos
fix(ngSwitch): make ngSwitch compatible with controller BC module

add a $scope to the ngSwitch's controller to fool the controller
BC (backwards compatibility) module used by DFA.
docs($rootScope): rearrange event listener docs
docs($resource): fix bad indentation producing a code block
fix(*): don't use instanceof to detect arrays

this breaks when multiple javascript contexts are involved - like in node-webkit

see original PR: #1966

Closes #1966
fix(a): workaround IE bug affecting mailto urls

Apparently there is a really weird bug in IE6-8 that causes anchor textContent
to be reset with href content when both contain @ symbol.

Inserting a bogus comment node into all anchor elements in IE works around this
browser bug.

I'm fixing the issue via directive because that way we'll fix it for jQuery as
well.

I fixed an e2e test too because it was incorrect.

Closes #1949
fix($httpBackend): patch for Firefox bug w/ CORS and response headers

A workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=608735
In FF getAllResponseHeaders() returns null if the request is the result of CORS.

Tried to format the code so that when a FF patch is released and gains enough
traction it can easily be selected and deleted. Heavily inspired by jQuery's
patch for the same bug. This patch falls short of passing through custom headers
but covers all of the "simple response headers" in the spec at
http://www.w3.org/TR/cors/

This commit should get reverted once Firefox 21 gets out.

Closes #1468

Conflicts:
	src/ng/httpBackend.js