Barcode validator

Hi!
I just wrote a tiny validator for barcodes (EAN 13 only for now). Feel free to merge it or give me some guidelines for further development ;)
Pierre-Baptiste.