We had them export to pdf, then imported them. Our system stored pdf objects for display. Since it was a migration, backwards compatibility was irrelevant.
Numerous libraries support parsing .dwg files. Autodesk provides a JavaScript library, though under fairly restrictive terms.