#673 clean up and refactor

- move non-select2 functionality into ws_actions
- maintain command dictionary in a format that makes sense
- add a method to transform that dictionary into something select2 easily understands
- update executeCommands method to look up its function in the command dict
- add comments
- cosmetic fixes to select2 spinner and outline color