added io api that can be used to load transparently from both plain files and mpqs. mpq loading not yet implemented
converted all existing file io to use the FAIO component. implemented some IO functions I forgot about. fwrite was intentionally omitted