Support for unset Kohana $environment, default sub_domain

In init.php, modified call to $_SERVER to use the Kohana::$environment variable that is set by default in the application bootstrap, as a server environment variable will not necessarily be available on all platforms.

Setting a default sub_domain of 'www' allows shmvc to be used on sites running without a subdomain.