Use QSettings for Qt, further abstracting

Added copyright headers to new files.