First state of UI rewrite, reimplemenation of agent status displays

@abnanda1 @DamianEdwards @davidfowl @moozzyk 
The typo in `agent.workers.lenght` makes me think this code does not work. 
I don't know if it makes sense to create a function that sums numbers in an array but you have exactly the same loop in the agent.detail-controller.js - or maybe there is a built-in way of doing this (that would prevent from failures due to mundane mistakes)?