Added pathfinding to AI extension

This is basically the same code as in the original PR #575 with the following changes:
- moved code into AI extension
- cleaned up the generics in the interfaces. No more compiler warnings.
- Added the ability to switch between a flying and a walking mover in PathfinderTest