First pass at shared_folders endpoint.

Initial implementation of the new shared_folders API endpoint presently
in beta. It works, but may need tweaks prior to landing upstream.