Fix syntax and error handling

- Use coffee script syntax for presence checking
- Better error message if api token not set
- Use unless instead of !
- Better report errors on responses