Prepare to merge linux and windows versions. Stage 1.
Use ReferenceToEntity() instead UTIL_GetCBaseEntity()
Remove unused code and some old comments (include commented code)
Littile cleanup.