Fix reminders query, coding standards
Unset installed version when stepping back in installer
Relocalize data dirs; fixes #483

Also take care of real data relocalization (photos, attachments and so on)
Reminders sent twice, refs #738