cleanup analytics controller code on the UI. Add features for better reporting. Fixed login so not all sessions are cached in LS. Other improvements.