Move file handling logic to core

All code to support the "open", "save" and "save as" menu actions is now
in the core package, inside the Editor class. I consider it a generic
enough feature to not be part of the main implementation.