make demo should be part of the test suite

make demo NODE_ENV=test will run as test
   by default runs as development
make test will run everything in test directory with test env
more resilient login util, report registration error earlier
This should not be in the Makefile because then you can't use the Makefile for other node environments, such as test or production.  Should remove.