Refactoring of loader.h to include srec_private.h, other various housekeeping bits.