fix test under mysql5.5 -- use the other connection to kill the thread
add travis
add support for Rails 4
install Appraisal