Refactor AgentStatus in tasks.js.coffee

Hide spinner for error display
Add feature specs