Fix specs for ruby 2.0.0

Typecast to int from string does not work in datamapper 1.2.0
When ENV['DEBUG'] is set, run RealWeb in thread for easier debugging