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
the syntax in the commit is actually a Makefile macro:  http://www.opussoftware.com/tutorial/TutMakefile.htm#macros