Fixes to account referrer to allow configurable referrer uri based on app redirect uri