Refactored getDestroyAP

- Split the calculations into getAttackApGain. Allows for other
functions to get the AP data.
- Renamed to getAttackApGainText as it isn't just destroying it is also
capturing. Originally the method only calculated the destroy values.
Fixing nits
nits - object field whitespace
Merge pull request #234 from ShawnTuatara/getAttackApGain

Refactored getDestroyAP
fix #216
player tracker ignored destroy resonators, even though it should only ignore destroyed links. Fixes #238
Update plugins/compute-ap-stats.user.js
Merge pull request #5 from breunigs/gh-pages

Rebase from bruenigs/ingress-intel-total-conversion
Update plugins/compute-ap-stats.user.js
Merge pull request #6 from Hollow011/gh-pages

Removed duplicate code based on recent rebase, fixed nits