Add function get_tpl_value to extract value from template config file.
Add envs.example and post-receive-gitolite-admin hook.

Make sure that any change to master(-ext) branch of gitolite-admin is
pushed to master of upstream gitolite-admin.
Upstream is 'staging' or 'external'.
Allows slapdd to listen to localhost *as well as* fully qualified hostname.