Folders plugin is open-source as of 4.0 release. More information here.
4.0
The documentation is available here.