main.js: start adding app menu
add preferences dialog skeleton
add preferences.js file