admin - update to init

The domain code is much more self contained now and will use the domain
in focus, if it's valid, if no 'last domain' is set in local storage.
Adjusted some sequencing.
removed some code no longer in use.