British prime minister Gordon Brown has resigned. Conservative leader David Cameron will take his place.