add debug for more helpful travis output
Fixes recognizing ready server that redirect on the root URL
Adds specs
Makes this thing 1.8.7 compatible