Converting some print statements to logging.

This will, importantly, print the traceback so we can see exactly where
stuff is failing.  Furthermore, it will send emails to the members of
the ``sysadmin-datanommer`` group so we know if it fails later at some
point down the road.