Add IntelliJ files to gitignore
Remove completely unused scaffold files
Add tests for DocumentNumber

Also fix crash in exception reporting
Add some fixtures
Upgrade to rails 4.0
Upgrade to rails 4.1