Add leading zero support for ImageCache
Add convenience sound manager static methods

This is essentially the same feature set as was implemented in 4624dda,
but it applies to the SoundManager instead of to the ImageCache.