Added support to cross origin requests
Fixed code for PHP 5.2
Changed tests to support PHP 5.2 :(
Fixed CS
Fixed doc description
Don't start a session if it's known to be empty.

If an app only reads/checks the session there's no need to start a
session to know that the read/checked session value is empty.

Fixes #1981
Added option to allowed headers
Avoid code duplication.
TranslateBehavior, his first steps
Improving translate behavior when used to override columns based on
a single locale
Re-implementing TranslateBehavior to use joins istead, this give
somewhat more freedom to the developer for modifying the query, for
example for sorting on a translated field
Implemented prepending of query formatters, this way behaviors have
a bit more control over formatters they attach
Trying to make translation formatter work when there are other
formatters
Fixing Query::count() so that formatters added in beforeFind are not
executed
Implemented find('translations') to get a list of all translations for
each record
Adding more tests to find('translations')
Moving beforeFind triggering a bit deeper so that it is not fired twice
for the same query
Fixing eager loading when using the subquery strategy, it was matching
more rows than it should have
Adding test to show that hasMany associations can also be translated
Added failing tests for implementing find('translations') on
associations