MMS New development branch created.

One new develomplent branch is created for MMS development, and commited here are:
a minor fix for mms_cdf_writing (compare error string and return error code)
a first draft of test function using Matlab Unit Testing Framework.
Merge branch 'devel' into maarble-devel
Merge branch 'devel' into maarble-devel
MMS_init will compile mex file with proper arguments

If the compiled mex file does not already exist the mms_init script will try and build,
with the proper arguments in CFLAGS (namely 'std=c99' instead of Matlab default ansi).
The build file will link to required libcdf.so
MMS_INIT will now build mexa64 successfully regardless of directory it was started from
MMS single dimension as zero, and one test for writing Usc with the cdfwrite function.

More detailed tests to be added (perhaps make sure all input was written correct as far as dimensionallity and that output file contained exactly the same as input arguments in all elements of the matrix/vector) Perhaps something more...
MMS CDF write test function, verify all variables

Updated to verify that all variables are written and read according to expectation.
Usc checks complete. QuickLook and SITL functions to follow (basically the same types of tests).
MMS testcase for CDFwrite for QuickLook added.
CDFwrite test function updated to test all three

Now one test is performed for each of the individual cdf write cases, (SITL, QuickLook, Usc).
MMS create a .m file interface mms_sdc_cdfwrite

Created a new Matlab interface file for writing to MMS CDF files, this way some help are provided making it a bit easier..
If the mexa64 file does not previously exist it will now be build when trying to write CDF files, instead of directly at mms_init.
A log message is still created notifying user that the mexa64 file was not found but built.

The flip of matricies is performed in the new interface file, that way users will simply send data in the format they expect it to be written,
i.e. for a matrix like xyz_pgse
[x1, y1, z1; x2, y2, z2]; will be written as two records where [x1, y1, z1] is the first record.

Test functions for OnlyWriting and functions used to write data in normal processing has been updated accordingly.
MMS testing with localfunctions require R2013b or later versions of Matlab. Aslo return to previous working directory when writing cdf files are completed.
MMS move writing of log file(-s) to subdirectory

It was pointed out that logs should be kept seperate for each spacecraft and instrument processing. To accomodate this all logs are now placed in $LOG_PATH_ROOT / mmsX / sdp /.

The empty logfile for each data output product is also placed in same subfolder. This empty log files name is used by SDC scripts to find the filename of outputs created.
Update test to use global ENVIR variable and create a short log file.
Use newer narginchk as older method is to be discontinued.
MMS processing start moved to one single file and others updated accordingly.
Added a few debug messages to log to clearify things.
MMS launch scripts for SDC processing added to git

These are the files used for launching the various MMS SDP processing done at SDC from bash.
Important is however: Move these files to the mms-sdp/~software/ folder (which has irfu-matlab as a subdir) on the SDC machines, this way the matlab path is correctly defined (excluding .git folder etc.).
MMS renaming to 'standard' filenames mms_sdc_sdp_* and changing in codes to corresponding new function/file names.
MMS lauch script template
Merge branch 'devel' into maarble-devel