autologin if credentials are stored
Read UID directly from DB
Add util.js
Remove some debugging messages
Make everything a bit more async to keep UI responsive
Refresh messages after sending, remove no-op quit()