Remove coveralls it simply does not work correctly and use Scrutinizer instead.
Factorize the thumbnail generation and move it to the class Book. re #127