Nonperturbative aspects of gravity and field theory