Changed `View::element()` to have an appropriately named event

And also made it so when the event fires the subjects type is
`View::TYPE_ELEMENT`. Wrote some tests which I hope are done right I
don't really know the bes way to write a test for a event listener
Exiting with 1 when Exception::getCode() returns non-integer values.

From php.net/exception.getcode
> Returns the exception code as integer in Exception but possibly as other type in Exception descendants (for example as string in PDOException).
Merge pull request #3809 from renan/2.5-non-integer-exception-code

Exiting with 1 when Exception::getCode() returns non-integer values.
cs correction
Fix identifier typos
Changed Event names back, added view type getter

Changed `Element.beforeRender` and `Element.afterRender` back to
`View.beforeRender` and `View.afterRender` Also added a getter for
`View::_currentType`.
Added more tests to make sure that things were getting reset right
And also that View::render and View::element events were working
As expected

Changed Event names back, added view type getter

Changed `Element.beforeRender` and `Element.afterRender` back to
`View.beforeRender` and `View.afterRender` Also added a getter and
setter for `View::_currentType`.
Added more tests to make sure that things were getting reset right
And also that View::render and View::element events were working
As expected
Adhering to CakePHP coding standards
More coding standard fixes
Fix more doc block errors in lib/
Merge pull request #3824 from NickBeeuwsaert/element_events

Added view type getter and ensured element render events would get the proper type
Tidy up and simplify travis.yml file.
Merge pull request #3829 from cakephp/api-doc-fixes

API doc fixes
Add pluralization rule for "stadia".

Refs #3830
Merge pull request #3832 from ADmad/2.5-inflector

Add pluralization rule for "stadia" to uninflected list.
Add setInput function to CakeRequest

Modify data originally from `php://input`. Useful for altering json/xml
data in middleware or DispatcherFilters before it gets to
RequestHandlerComponent or other controllers.
Added unit test for CakeRequest::setInput

Don't use mocks as the tests weren't really testing anything when mocks
were involved.

Refs #3764
Merge branch 'request-set-input' into 2.6

Fixes #3764
Merge branch '2.6' of github.com:cakephp/cakephp into 2.6
Revert "No truncate when drop table."
Relax email validation rules even more.

While filter_var() allows a number of email addresses that
Validation::email() does not, it misses out of email address that
contain IDN host names, and unicode mailboxes. Both of these are
generally deliverable, and should be permitted. filter_var() also fails
on local mailboxes like `root@localhost` which is useful in the context
of cron jobs.

Fixes #3742