Move Statistics from WaveGenerator/Utilitlies to CommonUtils for use in
other modules.
Some cleanup on login in views.