some basic implementation of configuration and background music

the config might not be quite the direction you want to go but it's some basic so that one can start implementing the ui for the config
don't use multiple assignments, prefer:

    var cfg = new Config();
    this.config = cfg;