Major cleanup, mainly in regards to statistics (which are now stored in the database) and achievement functionaly.