Merge pull request #983 from Schlaefer/ticket-3400

URL string with # in should be routed

Fixes #3400
Merge pull request #978 from andraskende/master

removed a non used $i, spacing between actions. changed to single quotes
use CakeSession wrapper
Fix behavior of --plugin param

Since plugins are not loaded in bootstrap, this is a good place to do it.
Merge remote-tracking branch 'origin/2.3' into 3.0

Conflicts:
	lib/Cake/Console/Command/ConsoleShell.php
	lib/Cake/Console/Shell.php
	lib/Cake/Controller/Component/EmailComponent.php
	lib/Cake/Controller/Controller.php
	lib/Cake/Error/ExceptionRenderer.php
	lib/Cake/Error/exceptions.php
	lib/Cake/Event/EventListener.php
	lib/Cake/I18n/Multibyte.php
	lib/Cake/Routing/Filter/AssetDispatcher.php
	lib/Cake/Routing/Router.php
	lib/Cake/Test/Case/Controller/Component/EmailComponentTest.php
	lib/Cake/Test/Case/Core/AppTest.php
	lib/Cake/Test/Case/I18n/MultibyteTest.php
	lib/Cake/Test/Case/Log/CakeLogTest.php
	lib/Cake/Test/Case/Routing/DispatcherTest.php
	lib/Cake/Test/Case/View/ScaffoldViewTest.php
	lib/Cake/Test/TestCase/BasicsTest.php
	lib/Cake/Test/TestCase/Error/ErrorHandlerTest.php
	lib/Cake/Test/TestCase/Model/Validator/ValidationSetTest.php
	lib/Cake/Test/TestCase/Network/ResponseTest.php
	lib/Cake/Test/TestCase/Routing/Route/PluginShortRouteTest.php
	lib/Cake/Test/TestCase/Routing/Route/RedirectRouteTest.php
	lib/Cake/Test/TestCase/Routing/RouterTest.php
	lib/Cake/Test/TestCase/TestSuite/TestCaseTest.php
	lib/Cake/Test/TestCase/View/Helper/PaginatorHelperTest.php
	lib/Cake/Test/TestCase/View/MediaViewTest.php
	lib/Cake/TestSuite/ControllerTestCase.php
	lib/Cake/TestSuite/TestSuiteCommand.php
	lib/Cake/Utility/ObjectCollection.php
	lib/Cake/Utility/Xml.php
	lib/Cake/View/Helper.php
	lib/Cake/View/View.php
Fix failing tests and merge mistakes.
Fix missing plugin parameters in scaffolding.

Add missing plugin parameter to scaffolded associations.
This improves link generation and correctness overall.

Fixes #3396
Start adding composer support

* Add app and framework composer files.
* Remove globals plugins & vendors directories, they will be unused
  once composer support is complete so remove them now.
* Remove the top level composer file.  It won't be used either.
Remove code that has no reason to exist.

Fix code styles.
Remove nested conditions.
Conditionally use Cake's ClassLoader

We don't need it if composer's autoloader is working.
Update app/config

We should only use CakePHP's autoloader if the App namespace
cannot already be autoloaded.
Consolidate unset()
Use constructor chaining to reduce code.
Fix paths and include composer autoload if it exists.
Fix cake console so it works from vendor/bin
Remove stupid default.

This was originally intended to stop stupid mistakes, but it just
makes releasing cake harder.
Add phing tasks for making subtree splits.
Add PHPUnit as a dev dependency.
Add README files to top level of each subtree split.