Entity header + API functions + Fixes

Add entity header.
Add macros for bitwise operations.
Add new API functions.
Fix the function Kr_Sound_Play.
Add a check in UTIL_PlaySound.