WebUI refactor.

Implement mongo user managment.