Doc fixes

Mostly to remove some warnings from yuidoc and improve automatic extern generation using the data.json generated by yuidoc.