Allow user to use their chosen WINEPREFIX for each bridge

Additionally, I cleaned up and secured templating a bit.

// Rebase onto master