Cleaned up and documented MasterInfo and related files

Major changes:
1. InodeFolder stores its children as Inodes rather than inode ids. This
simplifies many operations
2. Writing and loading filesystem images is modified accordingly to work
with the new InodeFolder structure