refactoring of startup scripts

+ templateExt can be set in config.json
+ added console scripts