Adds security and a templating engine