AI code cleanup

AI_GetGoalentForEnt and AI_RemoveGoalEntity are now O(1), not enumerating goal entities
The ai_handle_t struct is now private and allocated upon request, reducing the size of edict_t
AS bindings improvements: move AI functions to respective namespace, most classes are now asOBJ_NOCOUNT since they can not be produced via factory call anyway