Strip the details key from doctype properties

The details key contains information useful for other applications but
not intended for elasticsearch. There will be future work to expose this
information in a useful way.