Smarty templates use php's DOMDocument system for processing {insertable} tags.

The regex version of the script was too unreliable, (go figure :p ).
It has been replaced with a simplier version where {insertable} is replaced with <insertable>,
and the DOMDocument is used to find them.

This allows for support for nested insertables, among other improvements.