implement impersonation in core
Remove remaining identity stuff that is not being generated from plugin API