Add LOG_FUNCTION to settings

See tornado's Application.log_function
Remove some unused test code