We are about to start trialling an infrastructure to use and share user libraries through the IDE. In the meantime, here are the provisional specs and here you can find examples of how parts of the core code have been turned into libraries.
We will get in touch with you for beta testing in the next couple of weeks, if you are interested!