Move per-core "coreid" variable into BaseCore.

Remove per-core "coreid" variable and replace it with a common,
private "coreid" variable in BaseCore. Remove pure-virtual
get_coreid() function and replace it with a common get_coreid()
function. Update atom-core and ooo-core to reflect changes.