Escapes regex chars in pagepart handling

Dollar signs in the handling of pageparts (appendPagePartTemplates) caused
the method to crash. Now the characters are escaped.
Merge pull request #15 from stenbacka/links-in-pageparts-fix

Escapes regex chars in pagepart handling