Fixed up the Settings system.

Finished coding the settings system, it now auto genrates a xml file if
the settings file is missing.

Started messing around with the ligting systems. Not sure how I am are
going to do this yet.