Calculating time spent

Calculating time spent on the selected issue and generating the xml
information needed to update Redmine.