Add html template support. Refactor configuration keys.