Added file lock functionality

If character data has been loaded in, the file the data came from is
locked for editing (so it can't be moved, renamed or deleted). If the
file were tampered with during level up manipulation generating XML for
the new level would become impossible.
Started implementing default filename code