A man is jailed for life for killing a woman whose body lay undiscovered in her flat for three weeks after he beat her to death.