fixes for compatibility with kohana 3.3

Added some minor fixes for compatibility with Kohana 3.3. All pages now open without errors, testing routes also works.