Extension Templates

https://commitfest.postgresql.org/action/patch_view?id=1185
http://archives.postgresql.org/message-id/m2ppswssyl.fsf@2ndQuadrant.fr