fixed ticket #391: removed unrequired dependencies on tmssed.
 * the segfault was originated from ums-client (notably from the method vishnuFinalize), which tms-client is linked against
added misc refactoring
fixed and improved version checking for SLURM in TMS/src/CMakeLists.txt
Add a python unitTest, fix for SQL injection throught UMS, secure for IMS