re: local library storage, user/greasemonkey scripts could attach libraries to the window object. And it could be limited to certain URLs. Not ideal, but it’s local code accessible by remote scripts. This might be a great way to distribute tiny libraries for bookmarklets to depend on.