Added userPreference setting to session.
Flush user preferences if changes made to user.
Added refdata type property for icon display.