Add a class for handling the registration and lookup of API resources.
Review Request #7477 — Created July 2, 2015 and submitted
In Review Board, we had a nice little class that would handle the loading of resources on-demand, and would allow for resources to reference each other sanely without worrying about import loops. This change brings the base of that class into Djblets, so that any consumer of the API can use it. It's now easy to get this same functionality in all applications interfacing with djblets.webapi.
Made use of this in Review Board, and all unit tests passed.
Tool: PEP8 Style Checker Processed Files: djblets/webapi/resources/registry.py Tool: Pyflakes Processed Files: djblets/webapi/resources/registry.py