run erb through pre-processor when checking/extracting

also fix a couple bugs, slight refactor
make specs less brittle
handle string concatenation in link_to content
reuse identical wrappers
refactor string extraction logic