Added tests around diecutter.resources. Fixed regression in DirResource.render().