Large refactoring, Moved selection listener from sw-madame.js -> sw-app.js, Moved setup methods into a joint function scope to controle variables, removed some legacy code