TEHRAN, Jul 24 - Just hours before Boris Johnson was due to take office as prime minister, one of the most notoriously unconventional architects of Brexit was named as a senior adviser to help implement his pledge to leave the European Union by Oct. 31.