Rewritten file handling & some refactoring

File & table loading code rewritten to be more akin to how table parsers
are structured (i.e. base classes from which more specialized classes
are derived); refactored part of the code, ex. renamed some namespaces
and classes, put custom attributes into their own files...