clean up modbutton spaghetti, fix that bug for agentlame

- Turns the mod button tabs into proper tabs and separates the save buttons in the footer

- Fixes the CSS on the tabs, adds an active state for the current tab

- Reduces duplicate code for generating/updating the saved subs lists

- Fixes a bug with saved subs that the current user doesn't moderate (eg, when using a different account)

- General minor cleanup of spaghetti HTML

- Minor refactoring