Optimize stage: improve res.obj export

- Shorter reference syntax (# model -> # m, # sound -> # s)
- Do not export lightmap refs (not used yet)
- Do not export #materials (as they already linked in geometry)
- Export sounds (seek for entity noise-noise4 keys)
- sort referenced entries by name