Update mailcore2 dependency.
Switch project to Swift.
Add basic preference window.