changed $templatePath to $templateDirectory to fit with Slim 2.3.0