core: prefix API functions correctly

Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
Merge pull request #1000 from OlegHahm/prefix_core_api_functions

core: prefix API functions correctly
documentation: fix CMSIS doxygen for SAM3x8e
documentation: fix doxygen group for Z1