Increased requirement for Jinja2 to be 2.7
Added specific version for jinja2
Added cleanup event COMPLETE for end of request