Fix date range popup for cycles/adhoc

Its RC6 and we only just caught this bug!!! It was not
possible to delete or edit date ranges of type 'Cycle' due
to a cockup with the type() values.

Thanks to Martin Wifling for finding this one!
Merge branch 'master' of github.com:/GoldenCheetah/GoldenCheetah
JsonRideFile: add support to the references for forward compatibility
Fix Editor find results sorting

.. it was sorting as a string not a number
Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah
Deprecate overwrite existing files on import

.. just for release 3.0 until the major bugs are fixed.

Fixes #620
Fix first file SEGV

If you delete and readd an activity after showing it on
the diary view you get a SEGV.

This is an edge case related to deleting the last activity
and going back to the blank state before importing another.

Actually there are 3 technical issues;

1. GcCalendar doesn't get notified by MainWindow when
   there are no rides -- so it crashes on refresh

2. RideSummaryWindow doesn't get notified by home window
   if its not visible

3. RideSummaryWindow should check rideItem isn't NULL before
   trying to plot zones (but only for date range summaries)

Fixes #622
Diary Sidebar Calendar ignores first ride

Fix to check the first (0th) ride when clicking left
for previous ride rather than >0th.
Only refresh calendar if visible

Speeds things up and also removes problem of refreshing
when referencing a deleted ride.
Fix delete ride SEGV

Ridesummarywindow was using rideitem to get zones to use when
summarising for a date range which was bad because a) the ride
might not be for the date range selected and b) it might have
been deleted.

This fixes that and means we get a summary that is more accurate
and no crashing when rides are deleted.
Warning on add event

.. to explain they belong to a season.
Add Darren Hague copyright message

.. to the ANTLogger code.
Add alpha support for Dynastream OEM USB ant+

.. different pid of 1009 to the garmin usb2 stick
   but probably works the same .. lets see!
Update for RC7

.. version number / build id.
Fix ScatterPlot setTime() SEGV

At first it seemed this was caused by setting the time to
a value greater than the length if the ridefile.

It was actually a constructor error, since the settings
class didn't initialise the ride variable.
merge master into personal