Searches for an available port

closes #2
Ruby 1.9.3 compatibility

closes #3
Rubinius + JRuby compatibility