Added basic templating support, and readded server and port parameters of clients