small updates to application.js

- improved logging
- RSVP onerror hook