A 19-year-old man has appeared in a Western Australian court accused of murder and attempted murder over an alleged attack on an elderly couple in their Perth home.