COMP: Update scripted module build macro to consider script specified without ".py"

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21760 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add option WITH_SUBDIR to slicerMacroBuildScriptedModule

Let's illustrate how the macro works considering a simple example. There
is a module named "Foo" having few scripts:

/path/to/Foo/TheFoo.py
/path/to/Foo/FooLib/a.py
/path/to/Foo/FooLib/b.py

First, let's set the following variables:

   DESTINATION_DIR =  <Slicer-build>/lib/Slicer-4.2/qt-scripted-modules
   INSTALL_DIR     = /path/to/Slicer/lib/Slicer-4.2/qt-scripted-modules

Two cases are now supported:

 * Default case:

     slicerMacroBuildScriptedModule(
       NAME Foo
       SCRIPTS Foo FooLib/a FooLib/b
       )

     Will be copied into DESTINATION_DIR / INSTALL_DIR:

          <DESTINATION_DIR|INSTALL_DIR>/TheFoo.py
          <DESTINATION_DIR|INSTALL_DIR>/FooLib/a.py
          <DESTINATION_DIR|INSTALL_DIR>/FooLib/b.py

 * WITH_SUBDIR case:

     slicerMacroBuildScriptedModule(
       NAME Foo
       SCRIPTS Foo FooLib/a FooLib/b
       WITH_SUBDIR
       )

     Will be copied into DESTINATION_DIR / INSTALL_DIR:

          <DESTINATION_DIR|INSTALL_DIR>/Foo/TheFoo.py
          <DESTINATION_DIR|INSTALL_DIR>/Foo/FooLib/a.py
          <DESTINATION_DIR|INSTALL_DIR>/Foo/FooLib/b.py

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21761 3bd1e089-480b-0410-8dfb-8563597acbee
STYLE: Tweak ScriptedLoadableModuleTemplate

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21762 3bd1e089-480b-0410-8dfb-8563597acbee
ENH: Add option WITH_GENERIC_TESTS to slicerMacroBuildScriptedModule

Instead of manually invoking "SlicerMacroConfigureGenericPythonModuleTests"
and then adding the associated scripts, specifying this new option
will auto-magically add the generic test.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21763 3bd1e089-480b-0410-8dfb-8563597acbee
COMP: Re-organize Scripted module directories

* Built-in scripted module are now organize like the extension. One folder
per module.

* Macro "slicerMacroBuildScriptedModule" is now used consistently.

* Generic tests are now added auto-magically with the help of the new
parameter "WITH_GENERIC_TESTS".

* Remove unused ChangeTracker tests and created an issue
on the extension tracker. See https://github.com/fedorov/ChangeTrackerPy/issues/13

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21764 3bd1e089-480b-0410-8dfb-8563597acbee