mRNA-based therapeutics to induce immunity against cancer and infectious diseases