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