Non-Archimedean uniformization and tropicalization: Teichmueller space and M_g