Added tests for Alert gadget, updated JSDoc.
Added/changed actions in actions.py for new alert gadget, added tests
and doc.