Initial pathfinding API

Signed-off-by: fullwall <fullwall25@gmail.com>
Merge pull request #485 from fullwall/master

Implement basic pathfinding API
Deadlock safety
Added multi-tasker for multithreaded task handling

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>