API in __init__.py: library_registry is in the way when importing Library
This issue is related to <<issue 4>> and <<issue 15>>.
When you run bin/prepare in js.jqueryui, you get an error from the library_registry. All I wanted to do in js.jquery is import Library and Resource(Inclusion).
I tried to rewrite js.jqueryui to avoid this behavior, but could not get far before hitting a wall.
I fixed this by removing the imports of library_registry, LibraryRegistry and Fanstatic from init.py and rewriting some imports in other modules. The tests and bin/prepare in js.jquery work again after this change. I didn't check this in yet, as the changes are trivial but need to be discussed.
In my opinion, the init.py exposes too much. The library_registry is only relevant to the wsgi components and could be imported from the registry module. The Fanstatic wsgi component is already exposed through an entry_point and could be removed from the init.py.
How do you think about bringing back the API to a minimum?