refactor persistency, make DB connection state explicitly tracked
rename beans and node modules "mailsApp" to "mailarchiveApp",
"mailsAPI" to "mailarchiveAPI" and "mail" to "archivedMail"