Fix module dependencies

This PR moves a few things around, breaking circular dependencies, so we have a nice dependency tree.

This is done by:
- [X] Make "command" _not_ depend on "connection"
- [ ] Make "command" _not_ depend on "action"

If you see any circular dependencies which I didn't yet mention, notify me.
The file's prefix is `ws_command`. If anything, I the entire file should be renamed and __all__ the prefixes changed.
I'd rather _not_ do this.