As a start I could try to move the directory scanning code of the workbench plugin into such a lib. I think scanning directories for files based on a pattern could be useful for other plugins to.
I guess we should create a branch for this. So I can move the code there and who ever knows the build system best can write the make code to build the lib.