Replace ui() with pym.pym

We now have one global in the root module that takes care of everything. This
requires some finesse in the UI module, but the resulting interface is too nice
to pass up.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>