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