Don't call logging.basicConfig if logging is already configured (#775). Replaces #887

Will not call logging.basicConfig if there is a root logger,
tornado logger or tornado.application logger.

Updated patch to reflect comments in #887 about tests and method privacy.