Reviewed and Rewrote Commands

I finally got around to reviewing all of our commands. Some of them had some nasty bugs. I rewrote those and tested them to make sure that they're safe to use. See commits for details.

It's now safe to tell people to use DD's commands for server maintenance.