added smtp credentials, moved settings to db
added registration
avoids to run through popupselection twice on touchup (hack)
Fixes

- fixed missing first char if title is longer than 40 chars
- fixed logout
- fixed register/login dialog switches