userportal,webadmin: Persist advanced/basic mode per dialog type

The setting is persisted in the local storage. Always the last state is
persisted.

Change-Id: I786daf31eb5cf713bf5b7afe1210d2655ef7bd4a
Bug-Url: https://bugzilla.redhat.com/1075115
Signed-off-by: Tomas Jelinek <tjelinek@redhat.com>