core: add function to get CPU id/serial number

See RIOT-OS/thirdparty_cpu#19 for real world example.
Add a cheap expect script or compare before and after values of id maybe?