core::Unit::patrol/is_moving/get_highest_threat functions added; ai plugin's code has been organized + optimized to use less cpu