Copy SSViewer rewrite_hash_links regexp to SSTemplateParser
As this is meant to represent the same functionality in two different
areas, it should behave the same way in both.
Updated SSViewerTest to test for SSTemplateParser rewrite_hash_links fix
Merge pull request #3464 from InfinityIo/rewrite_hash_links-SSTemplateParser-fix

Fix over-eager rewrite_hash_links regexp in SSTemplateParser