Refactor projects
Add general options dialog

Close #1