Added function isdisplay to try to tell whether there is a display in Matlab.
Fixed bug when using old config file, behavior.type may not exist.

Trying to fix issue when running JAABA in deployed mode -- it just seemed to hang when I added an experiment. Added a bunch of status update commands to try to debug, use the busy cursor, also moved busy cursor call to a more sensible place.