An unlikely choice to be pope championed causes and challenged orthodoxy, keeping allies and critics alike on their toes.