Mahathir bin Mohamad resigns as Prime Minister of Malaysia after 22 years in power.