Backroom wheeling and dealing and the complex science of preference flows could result in an unexpected lord mayor.