matlab: extract tests from octave unit tests and put them in standalong .m files

plus support for this in Makefile.  Other minor changes to Makefile (matlab target requires regular ins build first)