Altered the templating so listeners and backends can be global. Also all...

...owed for multiple backends in one service.