Removed lots of cruft not needed for the pyramid port, it's still on the 0.3 branch if needed

Did some other cleanup tasks
More cleanups; now depends on appdirs (removed QSettings)