Renamed FOAMTagParser to TagParser and made more generic.