Support running commands on connect.

Refactoring _connect_box_type to allow a command to run to be given, for e.g.
`uk gen mysql`.

This code is dirty.
Retire uschimeralive function.