CCP Cleared or Bilateral CSA Trades with Initial/Variation Margins Under Credit, Funding and Wrong-Way Risks: A Unified Valuation Approach