Libraryise

We want to add features to this code and we are going to rely on it heavily as an indication of search result quality. Therefore we need a solid, tested and extensible base.

It also makes sense to increase the usability of its output, and colorised logging should do that.