Huge refactoring: much more object-oriented, solid and extensible. In particular, a query engine was coded which allows for parsing blacklists in a very intelligent fashion, plus a set of rules that as of now understand tags, -tags, ~tags, wild*cards and rating:/-rating: instructions. Several new utilities were added, the JSON output is now really elegant and comprehensive (version number was increased), and several bugs were fixed.