Various improvements and bugfixes for accounts/signon/social

Accounts: check pointers before dereferencing
Signon: allow changing identifiers after initialisation
Social: improve filter/sorter ownership semantics