Cleanup & use Config struct

Remove unused secret field
Remove unused templates field
Use it to [optionally] configure the listen address/port