Follow-on on clean URL update - make "gallery3/index.php" redirect, too.
Send guests to login from user_profile if not seen by everybody (Thanks, Tal!)
Before, if a valid user was viewing their profile and logged out, it went boom.
Remove some no-longer-needed comments in bootstrap.
Rename Controller_Rest::$reply to Controller_Rest::$rest_response.
Add Rest::registry() to get list of resources.
Refactor Controller_Rest::before() a bit.
First swing and setting up new Controller_Rest and Rest helper functions.
This will likely need further debugging, revision, etc.
Change REST API version from 3.0 to 3.1.
Move Rest::$default_params to Controller_Rest::$default_params so it's easier
for each resource to override them as needed.
Merge pull request #389 from shadlaws/fixes_20130610

Fixes 20130610
Bootstrap fails badly when the var/log file is not set up.  Our instructions only say to create the var directory.  But we try to set up kohana logging early on in the bootstrap process. When it fails then it tries to issue an exception, but the __() function hasn't been defined... so then it just gives up the ghost.  At this point, we can't use any Kohana functions as nothing is setup.
Move the check that gallery is installed from bootstrap.php to index.php.  To solve the problem when trying to initialize Kohana, none of the gallery3/var/* directories have been created.
Merge branch 'kohana_3' of github.com:talmdal/gallery3 into t_kohana_3