Call ErrorHandler on window
Merge pull request #637 from Tahi-project/fix_error_handling

Call ErrorHandler on window
Add export action for dynamic download types
Add EPub uploader
Add PaperConverterController and Worker
Add base paper controller test
Update to Ruby 1.9-style hash syntax
Allow VCR to record localhost for Selenium tests

Disallow localhost for all other tests, so that we can record
connections to iHat locally.
Add route for conversion status
Make rubocop happy
Add endpoint to check the status of an iHat job
Ignore VCR cassettes
Move iHat supported formats to separate file

This solves the problem of agressive cached application.js and stale
results
Add haml-lint for pre-commit hook
Set VCR.ignore_localhost on tests tagged as js

And then reset to the default value after each test
Add ember testings for downloadings
Rename export_format param to format
Only ignore localhost requests to known services
Remove space from mailsafe replacement address
Provide JSON directly, no need to parse