main: add option to use tcp sockets to connect to docker service 8ee602d templates: refactor template base class for easier use and less code duplication 7e5d804 tests: add tests for templates module 5077151