Added get_timespan() function.

Added det_timespan() function to both ITS.py and SCM.py. It calculates, by querying the database, the time for the first and last commits (startdate and enddate in SCM), and the first and last activity in actions and issues (in ITS). Both are needed by scripts not assuming an specific start and end dates.