slight style changes

- add another color for cancelled states.
- change order of last_execs and last_states type classes.
limit executions preparation to 500 per targets
fix agents list ordered by date

The query was not fetching the correct date and the result was an
incorrect sorting of the agents by last execution date.