Begin work on the AI update and pet attacking system

Will also include more pet goals and behaviours.

Involves the following open tickets:
#196
#173
#108
#97
#90
Merge origin/master