Minor tweaks, maintenance improvements and tidier externs

- YUIDoc path improvements
- Generate tidier extern code
- General cleanup/maintenance