srd: clean up module loading/unloading, and the decoder struct