Simple AI plugin refactoring.

Enum class. Removing export symbols. Linking with unit tests statically.