Agent should restart on connection error

- Agent automatically restarts.
- Agent now has restart command.
Forgot to include agent.js

I derped.