Authentication form: set a global isAuthenticated flag on success

Plus a bit of cleanup.
Web UI routing test: housekeeping
Web UI files: less directory structure