moved away from RSpec 3 beta
made Base#background wait for the server to be responsive before returning.
added specs for middleware (a big thank-you to Sinatra for having this feature ready-to-go)