Improve "server_mode" section readability
Constant for templates subdir name
Put subdir constants before default values constants
Require server-side npm modules only in npm mode