Implemented get_attack_details and get_targets_for_attack (JSON) (#54, #55)

Currently the javascript code is all cramped up in a single function.
Should be refactored after we know for sure how everything behaves, and
what can be DRY'd etc in the other pages.