Extension Templates

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