Support for Sinatra. Fixed the error relating to undefined 'settings' after upgrading to Sinatra 1.3.