Fix bug with Purifier - recursion didn't work with objects.
Rename rest module classes
- "core" directory name changed "Rest" --> "RestAPI"
- Rest class name changed "Rest" --> "RestAPI"
Fix class declarations for newly-renamed classes.
Fix "Rest::" --> "RestAPI::"
Refactor core REST classes - resources will now be instances of the Rest class.
Revise REST to be more careful with access keys of guests.
- always return that the guest's key is null.
- ensure that a valid guest key doesn't bypass "allow_guest_access" config.
Remove access_key REST resource - no longer needed.
Move all 13 REST resources to their new homes ("Controller/Rest" --> "Rest").

--HG--
rename : modules/comment/classes/Comment/Controller/Rest/Comments.php => modules/comment/classes/Comment/Rest/Comments.php
rename : modules/comment/classes/Comment/Controller/Rest/ItemComments.php => modules/comment/classes/Comment/Rest/ItemComments.php
rename : modules/comment/classes/Controller/Rest/Comments.php => modules/comment/classes/Rest/Comments.php
rename : modules/comment/classes/Controller/Rest/ItemComments.php => modules/comment/classes/Rest/ItemComments.php
rename : modules/gallery/classes/Gallery/Controller/Rest/Data.php => modules/gallery/classes/Gallery/Rest/Data.php
rename : modules/gallery/classes/Gallery/Controller/Rest/Items.php => modules/gallery/classes/Gallery/Rest/Items.php
rename : modules/gallery/classes/Gallery/Controller/Rest/Tree.php => modules/gallery/classes/Gallery/Rest/Tree.php
rename : modules/gallery/classes/Gallery/Controller/Rest/UserComments.php => modules/gallery/classes/Gallery/Rest/UserComments.php
rename : modules/gallery/classes/Gallery/Controller/Rest/UserItems.php => modules/gallery/classes/Gallery/Rest/UserItems.php
rename : modules/gallery/classes/Gallery/Controller/Rest/Users.php => modules/gallery/classes/Gallery/Rest/Users.php
rename : modules/gallery/classes/Controller/Rest/Data.php => modules/gallery/classes/Rest/Data.php
rename : modules/gallery/classes/Controller/Rest/Items.php => modules/gallery/classes/Rest/Items.php
rename : modules/gallery/classes/Controller/Rest/Tree.php => modules/gallery/classes/Rest/Tree.php
rename : modules/gallery/classes/Controller/Rest/UserComments.php => modules/gallery/classes/Rest/UserComments.php
rename : modules/gallery/classes/Controller/Rest/UserItems.php => modules/gallery/classes/Rest/UserItems.php
rename : modules/gallery/classes/Controller/Rest/Users.php => modules/gallery/classes/Rest/Users.php
rename : modules/rest/classes/Controller/Rest/Registry.php => modules/rest/classes/Rest/Registry.php
rename : modules/rest/classes/RestAPI/Controller/Rest/Registry.php => modules/rest/classes/RestAPI/Rest/Registry.php
rename : modules/search/classes/Controller/Rest/Search.php => modules/search/classes/Rest/Search.php
rename : modules/search/classes/Search/Controller/Rest/Search.php => modules/search/classes/Search/Rest/Search.php
rename : modules/tag/classes/Controller/Rest/ItemTags.php => modules/tag/classes/Rest/ItemTags.php
rename : modules/tag/classes/Controller/Rest/TagItems.php => modules/tag/classes/Rest/TagItems.php
rename : modules/tag/classes/Controller/Rest/Tags.php => modules/tag/classes/Rest/Tags.php
rename : modules/tag/classes/Tag/Controller/Rest/ItemTags.php => modules/tag/classes/Tag/Rest/ItemTags.php
rename : modules/tag/classes/Tag/Controller/Rest/TagItems.php => modules/tag/classes/Tag/Rest/TagItems.php
rename : modules/tag/classes/Tag/Controller/Rest/Tags.php => modules/tag/classes/Tag/Rest/Tags.php
Fix class declarations for newly-moved REST resources.
Clean up a few things in Controller_Rest.
Revise how REST resolves things
- make RestAPI::resolve() return null on failure instead of throw an exception
- remove RestAPI::resolve_members() - resources as objs means we can do this better
Revise how Controller_Rest parses entity, members, and relationships parameters.
Revise how relationship types are shown/parsed (e.g. "tag_items" vs. "TagItems")
Revise how we send base64-encoded files.
Revise the 13 REST resources to use the new OO REST structure.
Merge pull request #418 from shadlaws/fixes_20130618

Fixes 20130618