Add filesystem commands and new PoC modules

This commit also refactors some of the code.