WIP: Almost done with the Rails4 update.