New module for analysing genres & tags

Bit complicated to explain what this is supposed to do - and I don't
have time right now! See test() function in genre_relationships.py for
example.