Fixed #18773 -- Add logging for template variable resolving

Added a django.template logger with a default null handler.  Added
logging if there is an exception while resolving variables in a
template. Added corresponding tests and updated logging
documentation.
need `.. versionadded:: 1.8` under the heading and a mention in the 1.8 release notes.