Got administration pages working again with no errors.
Changed the way language files are formated for admin section.
All data but template and language are now pulled in general settings.
Modified JavaScript for mail settings to hide and show needed settings.