Add tiny sleep to make idle handler work on MRI 1.9.2
Move non-essential development dependencies back to Gemfile

Specifying type makes Gemnasium correctly classify them as development
dependencies.
Don't set up idle handler when not needed

JRuby and Rubinius do a fine job keeping threads running while the main
thread is off in C-land, so a separate idle handler is not needed there.