Fix EventSwitch shutdown with multiple worker threads.
Add TAG to daemon initialization functions.
Add static method to ibrcommon::Thread to get the number of cpu cores.
Set the number of CPUs as default number of processes for the EventSwitch.