sort the mimeTypes map alphabetically

except for html which is at the top. Easier maintainance
Fix double base dir in image() with fullBase.

Fixes #2991
Refactoring View::element()
Fixing a few issues within the new methods
Changing the signature of View::_elementCache()
Merge pull request #706 from burzum/2.3-element-refactor

2.3 element refactor
Fix for CakeEmailTest.php that failed unless using 'localhost'
Fix notice error when parsing input data.

Prevent error in CakeRequest from parsing input data in
PUT and DELETE requests.

Fixes #3002

Signed-off-by: mark_story <mark@mark-story.com>
Merge pull request #707 from SimonEast/fix_CakeEmailTest

Fix for CakeEmailTest.php that failed unless using 'localhost'
Fix lint error.
Make test case use SERVER_NAME conditionally.
Revert "sort the mimeTypes map alphabetically"

This reverts commit 90ae2df38ea85fea1a52aaeb83c917085dda5a7f.

The mime type is used by CakeResponse::mapType to determine which mime
type maps to which alias. As this is done in the order of the mimetype
map the mimetype map is order sensitive.
text/javascript is not the correct mime for js
Automatic console logging streams were not respecting --quiet
Fix failing tests.

* New properties on view caused fails in Debugger.
* Element cache keys have changed with the new refactoring.
Update afterSave to ensure created entires have all translated fields present

Without all fields being present, find() will be unable to find the
translated records.

Fixes #3009
Add tests for translate + partial fields.

Refs #3009
Fixed some typos in the comments in this file. This helps with type
hinting in IDEs that support that.
Merge pull request #710 from iliepandia/fix.typos

Fixed some typos in the comments in this file.
Added CakeResponse::file() for serving files as response