Sinatra 1.4 compatibility

OK in #1103 we wanted to make padrino support sinatra 1.4. In this branch that happens and all tests appear to pass. This locks us to Sinatra 1.4.0.d (@rkh is releasing 1.4 this weekend I believe)