Add DeviceStateChanged and PresenceStateChanged AMI events.

These events are controlled by two new modules, res_manager_devicestate
and res_manager_presencestate.

Review: https://reviewboard.asterisk.org/r/3417



git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@413060 f38db490-d61c-443f-a65b-d21fe96a405b