Slicetiming, modular tasklists

Fixed problems in slicetiming
Renamed dicom header stream in aamod_convert_epis to conform to other
header stream conventions ('t1_dicom_header', 'structural_dicom_header')
Added modular tasklists via aas_generateRecipe.m and
aap_tasklist_begin.xml and aap_tasklist_end.xml
Modularised aamod_firstlevel_model script

Original one was bulky and unwieldy, and given that we have several
different ways of doing firstlevel (like Mumford/Poldrak) that are not
(yet) readily placed in a single module, it will be easier to debug if
the machinery remains constant across aamod_firstlevel_model variants.
Added extrafunctions from sasha branch

A bunch of useful extrafunctions
Also fix aamod_convert_epis to save info on slicetiming and TR
Added ANTS modules

Modules using the ANTS toolbox
(still may need to add parameters to find ANTS directory, etc.)
Added a set of useful, fairly stable modules (biascorrection, segmentation, ggmfit, normalise, smooth, secondlevel permutation, GLMdenoise)
Added freesurfer based modules
Fixed meanepi stream in modules to be a subject stream, not a session=1 stream
Fixed meanepi stream in modules to be a subject stream, not a session=1 stream
Last fixes and additions to share-devel...

Tested them with a simple 3T dataset for the core functions. Errors in
more esoteric/novel functions may remain.
Will test this in the coming weeks and fix where appropriate.

Notes:
Corrected aas_garbagecollection (here varargin is not appropriate since
we also include output permancence threshold, which is numeric)
Renamed spm_render to spm_render_aa to avoid conflicts elsewhere.
Improved some graphics in aamod_firstlevel_threshold
Merge remote-tracking branch 'origin/devel-share' into sasha

Conflicts:
	.gitignore
	aa_engine/@aaq_qsub/aaq_qsub.m
	aa_engine/aa_report.m
	aa_engine/aas_addcontrast.m
	aa_engine/aas_getSliceOrder.m
	aa_engine/aas_movPars.m
	aa_modules/aamod_ANTS_struc2template.xml
	aa_modules/aamod_MP2RAGE.m
	aa_modules/aamod_MP2RAGE.xml
	aa_modules/aamod_autoidentifyseries_timtrio.m
	aa_modules/aamod_autoidentifyseries_timtrio.xml
	aa_modules/aamod_bet_epi_reslicing.m
	aa_modules/aamod_bet_epi_reslicing.xml
	aa_modules/aamod_bet_premask.m
	aa_modules/aamod_bet_premask.xml
	aa_modules/aamod_biascorrect_segment8.m
	aa_modules/aamod_biascorrect_segment8.xml
	aa_modules/aamod_compSignal.xml
	aa_modules/aamod_convert_epis.m
	aa_modules/aamod_convertfieldmaps.xml
	aa_modules/aamod_copystructural.m
	aa_modules/aamod_copystructural.xml
	aa_modules/aamod_copyt1.xml
	aa_modules/aamod_coreg_extended_MP2RAGE.xml
	aa_modules/aamod_coreg_finetune.xml
	aa_modules/aamod_coreg_noss.m
	aa_modules/aamod_coreg_noss.xml
	aa_modules/aamod_decodeDMLT.m
	aa_modules/aamod_decodeDMLT.xml
	aa_modules/aamod_denoiseANLM.xml
	aa_modules/aamod_denoiseANLM_MP2RAGE.xml
	aa_modules/aamod_denoiseANLM_nodicom.xml
	aa_modules/aamod_epifromnifti.xml
	aa_modules/aamod_evaluatesubjectnames.m
	aa_modules/aamod_fieldmap2VDM.m
	aa_modules/aamod_fieldmap2VDM.xml
	aa_modules/aamod_firstlevel_contrasts.m
	aa_modules/aamod_firstlevel_contrasts.xml
	aa_modules/aamod_firstlevel_modelspecify.m
	aa_modules/aamod_firstlevel_modelspecify_explicitmask.xml
	aa_modules/aamod_garbagecollection.xml
	aa_modules/aamod_get_dicom_epi.m
	aa_modules/aamod_get_dicom_epi.xml
	aa_modules/aamod_get_dicom_fieldmap.m
	aa_modules/aamod_get_dicom_structural.m
	aa_modules/aamod_highpass.m
	aa_modules/aamod_highpass.xml
	aa_modules/aamod_highpassfilter_epi.xml
	aa_modules/aamod_importfilesasstream.xml
	aa_modules/aamod_listspikes.m
	aa_modules/aamod_listspikes.xml
	aa_modules/aamod_mask_fromstruct.xml
	aa_modules/aamod_melodic.m
	aa_modules/aamod_melodic.xml
	aa_modules/aamod_movie.m
	aa_modules/aamod_moviecorr_summary.xml
	aa_modules/aamod_norm_noss.m
	aa_modules/aamod_norm_noss_cbu32channel.xml
	aa_modules/aamod_norm_noss_coregextended.xml
	aa_modules/aamod_norm_write.m
	aa_modules/aamod_pewarp_estimate.xml
	aa_modules/aamod_realign_noreslice.xml
	aa_modules/aamod_realignunwarpDCCN.m
	aa_modules/aamod_realignunwarpDCCN.xml
	aa_modules/aamod_secondlevel_model.xml
	aa_modules/aamod_segment8.m
	aa_modules/aamod_segment8.xml
	aa_modules/aamod_slicetiming.m
	aa_modules/aamod_smooth_structurals.xml
	aa_modules/aamod_structuralstats.xml
	aa_modules/aamod_tSNR_EPI.m
	aa_modules/aamod_tSNR_EPI.xml
	aa_modules/aamod_tSNR_EPI_noROIs.xml
	aa_modules/aamod_tensor_ica.m
	aa_modules/aamod_tensor_ica.xml
	aa_modules/aamod_tsdiffana.m
	aa_modules/aamod_tsdiffana.xml
	aa_modules/aamod_unnormalise_rois.m
	aa_modules/aamod_unnormalise_rois.xml
	aa_recipes_and_parametersets/aap_parameters_defaults.xml
	aa_toolbox/mvpaa/aamod_MVPaa_brain_1st.m
	aa_toolbox/mvpaa/aamod_MVPaa_brain_1st.xml
	aa_toolbox/mvpaa/aamod_MVPaa_brain_SPM.m
	aa_toolbox/mvpaa/aamod_MVPaa_brain_SPM.xml
	aa_toolbox/mvpaa/aamod_MVPaa_roi_1st.m
	aa_toolbox/mvpaa/aamod_MVPaa_roi_1st.xml
	aa_toolbox/mvpaa/aamod_MVPaa_roi_2nd.m
	aa_toolbox/mvpaa/aamod_MVPaa_roi_2nd.xml
	aa_toolbox/mvpaa/mvpaa_addcontrast.m
	aa_toolbox/mvpaa/mvpaa_balanceCont.m
	aa_toolbox/mvpaa/mvpaa_buildROI.m
	aa_toolbox/mvpaa/mvpaa_correlation.m
	aa_toolbox/mvpaa/mvpaa_extraction.m
	aa_toolbox/mvpaa/mvpaa_label2cont.m
	aa_toolbox/mvpaa/mvpaa_loadContrasts.m
	aa_toolbox/mvpaa/mvpaa_loadData.m
	aa_toolbox/mvpaa/mvpaa_makeSphere.m
	aa_toolbox/mvpaa/mvpaa_shrinkage.m
	aa_toolbox/mvpaa/mvpaa_statistics.m
	dependency_analysis.m
	external/ANTS/Examples/Atropos.cxx~
	external/ANTS/Examples/ImageMath.cxx~
	external/ANTS/Examples/KellySlater.cxx~
	external/ANTS/Examples/MeasureImageSimilarity.cxx~
	external/ANTS/Examples/PrintHeader.cxx~
	external/ANTS/ImageRegistration/ANTS_affine_registration2.h~
	external/ANTS/ImageRegistration/itkANTSImageRegistrationOptimizer.cxx~
	external/ANTS/ImageRegistration/itkANTSImageRegistrationOptimizer.h~
	external/ANTS/ImageRegistration/itkAvantsMutualInformationRegistrationFunction.cxx~
	external/ANTS/ImageRegistration/itkCrossCorrelationRegistrationFunction.cxx~
	external/ANTS/ImageRegistration/itkCrossCorrelationRegistrationFunction.h~
	external/ANTS/ImageRegistration/itkPICSLAdvancedNormalizationToolKit.txx~
	external/ANTS/ImageRegistration/itkProbabilisticRegistrationFunction.cxx~
	external/ANTS/ImageRegistration/itkProbabilisticRegistrationFunctionSlow.cxx~
	external/ANTS/Utilities/itkApocritaSegmentationImageFilter.txx~
	external/GLM_Flex/estimateGLM.m
	external/Utilities/nansum.m
	extrafunctions/coord2ROI.m
	extrafunctions/corr2pt.m
	extrafunctions/img2mask.m
	search_code.m
Some bizarre set of changes from Github Windows

Github Windows has reactivated a merge 7 months ago and I must clean up
as best I can