Whole bunch of stuff for ghost AI.

Now it just needs a couple new actions and conditions.