Added api-key generation, resetting, and auth.

Still need to test all authorizations.

Also added a python script to test a scripted agent.
Bug-fixes and fixed views for agent trading.
Some improvement to agents//view and agents//trade.

Added messages if no trades have been made or if the portfolio is
empty.

Added a refresh button to refresh the status of the agent.

Added a button to navigate from trade to view.
Added auto-refreshing to trade and agent views.

This required the addition of angular-timer to bower, so an npm install
is needed.
Moved cash into composition of portfolio.
Secured against an agent trying to trade cash.
Added a 'reset trades' button to the agent view.
Added a status property for each agent.

Backend adds the status when it shows an agent. The status includes the
agent's current cash and current portfolio value (total portfolio value
is current + cash). If the user owns the agent, also shows the current
portfolio composition.