Security fix

Automatically switching to JSON output based on the Accept header is a massive security risk. I can crawl an entire ZF2 site with JsonStrategy enabled and get it to dump all the ViewModel variables for every page by simply adding "application/json" to the Accept header. This includes any information which the developer passed to the view but did not anticipate ever being rendered on a page and may include sensitive information.

The default use case should NOT automatically output JSON based on a user-defined request header. A better solution would be to make this a configuration option but this is beyond my knowledge of ZF2 and beyond my current availability to implement so I can only offer to remove the offending code for now.
quoteIdentifier() & quoteIdentifierChain() bug

Identifier escaping is done means of doubling the delimiter character, and not using a backslash.
quoteIdentifierInFragment() also has wrong escaping
Added tests for ensuring escaping
Added composer.json for resources package.
Add empty option before empty check
Removed check for empty option
Enable view sub-directories when using ModuleRouteListener

This feature enables the InjectTemplateListener to specify view sub-directories when the ModuleRouteListener is being used.

For example: It allows a controller such as Foo\Controller\SubNamespace\BarController to map to "foo/sub-namespace/bar/(action)"
Updated test for PR#2837
change 'and' operarator with '&&'
Resolve naming conflicts in foreach statements
Add missing @throws annotations
added another test with a 'live' controller
Merge branch 'feature/zend-mvc-view-http-InjectTemplateListener-NestedNS' of git://github.com/mpinkston/zf2 into hotfix/2867

Conflicts:
	library/Zend/Mvc/View/Http/InjectTemplateListener.php
Merge branch 'hotfix/2867'

Close #2867
Merge commit 'refs/pull/2873/head' of github.com:zendframework/zf2 into hotfix/add-missing-throws-tags
Merge pull request #2873 branch 'hotfix/add-missing-throws-tags'
Merge commit 'refs/pull/2871/head' of github.com:zendframework/zf2 into hotfix/change-logical-operator
Merge pull request #2871 branch 'hotfix/change-logical-operator'
OutputCache: fixed storing of catched output