Config templates.
Refactor config template writting.
Server __init__ refactoring.
Merge branch 'refactoring' into develop