adding Sinatra::Request.accept? method for pre-1.3.0