Migrate to rails 4 and ruby 2

refs #1088