Move code out of __init__.py files, attempt #2.

This includes getting rid of command registration magic,
since it's complicated and commands are going away entirely anyway.