partner_addthis extension upgrade

Adds template functions in more standard way
Deprecates use of startExtension
Adds more robust dependency checking