Added some code for the file system. This is brought over from the Batman framework with some extra features once it's done.