Added settings function to Twig extension

... by which it is possible to easily use the database settings in the template