Added optional slug matching via settings option
Fix typo for template module import
Update to try matching exact tag name first and then falling back to
slug matching.