addedd batman parser, applyied DRY and created generic Parser

I wrote a parser to work on a Batman-adv Topology, the json can be generated using "batadv-vis -f jsondoc".
To implement this parser i've also created new generic Parser class. This contains all the method that all the parser have in common.

I've also fixed a bug of the diff function.