Fix SSO issues in Activitystream control

Bug in extensions fixed as well.