Added AI script, improved Pathfinder

Overview: http://www.youtube.com/watch?v=ufPyUvoedfA

Commit video: http://youtu.be/mEfmLRCKJsY