Began migrating common matcher/tags/regexps code.
Added spec for tags.