Add support for writing core files of IOCs

Add support for a new variable CORESIZE that can be set in
/etc/default/epics-softioc or /etc/iocs/foo. Set it to the
maximum allowed size of a core file in bytes.