Upgrade rails
Update configuration for rails 4
Fix specs
Refactor specs to modern style