Refactored how the list of actions work, in order to make it possible to save it in a database - also re-vamped the undo and other functionality to match, and to also be easier to expand later
Removed some dead code
Moved around some code to better organize things