Reworked the actions file to transmit the data properly to the AJAX
request. Also merged the query and data parameter properties.
Converted actions.js to TypeScript.
Changes following CR.
Merge pull request #197 from my-koop/mg_actions_rework

New actions data approach