A prehistoric beast with a bony plate on its head lived 99 million years ago and may be the ancestor of today's crocodiles.