Move Cache setting up to before we first use it.
Move I18n up as well.
Define $first_module and $last_module so the bare Kohana::modules() call in bootstrap.php doesn't trigger a notice.