-Separated chat component and related definitions into their own file
-Separated deck editor and associated definitions into their own file
-Added $button macro declaration and used it in one place

Next up:
     -Define $on and use it as appropriate
     -Rename #new-deck-setup to #deck-editor and make sure all associated CSS/JS selectors use the new name
     -Any other minor refactorings you come across
     -Make the deck editor usable, and use it to create the bombsquad deck
-$on and $button have been defined, used and tested
-Renamed new-deck-setup to deck-editor
-Minor deck-editor UI changes, and removed some global variables in deal-ui
-A little consistency in css class naming (all instances of "contents" renamed to "content"; this was actually causing some deck editor bugs)
-stack-from-json now requires that the stack it creates has at least one card
-Custom decks are now cookied properly
-Changes to define-thing, involving a more precise way to select the givent thing
-Editor is half-way functional;
	- Custom decks are cookied
	- Custom decks can be downloaded
	- Custom decks can be edited

Really, I just need to write the upload procedure, and we're done bar the interaction tweaks.