Copy several Padrino 0.12 files to fix support for ActiveRecord 4 and other dependencies.