ability cancelable by clicking on active ability icon again

added variable in ui.js for holding the selected ability id, and
altered the onclick function to check if clicked icon is already
selected, if so deselect and cancel ability

also tidied up the variable name for ghosted_creature to ghostedCreature
Merge pull request #241 from Archiboldian/master

ability cancelable and tidy