This patch introduces the functions 'affinity' and 'num_cpus' to the CPU session interface. The interface extension will allow the assignment of individual threads to CPUs. At this point, it is just a stub with no actual platform support.
As suggested by Norman in the discussion of issue #145, this commit renames the tid() accessor in Native_capability to dst().