Create postgis template with extensions

This PR allows to automatically create a postgis template and activate postgis extensions on it.

It depends on #521 (whose commit is included here).