Fixed migration of allowed accounts, applications, contacts and template

Refs #1555
Fixed permission updates

Fixes #1554
Closes #1557
Log projection (support info)