Replace Template::Perlish with Text::MicroTemplate
Try to detect the line where the sub is actually defined

Since the profile does not contain the information, derive it from the source
code using regular expressions (and fall back to using the first code line
inside the sub).
Do not strip source code that contains samples

Avoids mangling the source code if it contains __DATA__/__END__ inside a
string/comment/eval.