After an extended detention, Taiwan People's Party founder and former Taipei Mayor Ko Wen-je has appeared in court on corruption charges.