Ensure that variables and functions are also available in blocks of code

View variables will be remapped anywhere they appear in the template, but
are only automatically escaped if output with the <?= short tags.

Also implemented tests for access to protected and public properties
and class methods.
Check Request::current() for ajax when rendering layout

If the View_Layout is not explicitly set to render (or not render)
the containing template then it will decide based on whether
Kohana detected that the current request was an AJAX request.
Quick and dirty factory class to allow speccing controllers

In your controllers, rather than View::factory and friends, provide
a way to inject a ViewFactory (or create a new one as an empty
default). Create your views as $this->view_factory()->create().

This then means you can inject a stub ViewFactory in order to stub
view classes and test expectations about the view data that will be
set.

You can also extend the ViewFactory class to map class names to
alternates if required.
Update to use official Kohana packages
Merge remote-tracking branch 'origin/develop'