Fixes to broken check-in: slight refactoring of main app logic separated
from the express.js/node bits and pieces.  Some still to come I expect