add Book::sort_file
add Rakefile for test
move upgrade script into Rakefile
add travis file