Adding map filter

Takes the reg ex and a value map and returns the mapped value, or falls
through to the specified defaultValue.  Used for page type, e.g. is it a
page, asset, etc.