Starting to remove libraw usage

Reduce libraw usage by eliminating the libraw raw loading path (rawspeed does everything now) and refactoring the thumbnail code so it uses a single implementation in imageio.c.