John McCain’s campaign is a swirl of influences, with friends and advisers representing a matrix of ambitions.