CpintPlot Compare Mode
you can now compare intervals or date ranges via the critical power window
CP Plot Fixups

Fixed a few nits that have come to light over the last
few days as lots of new features were developed.

* Fixed interval glitch where first point is zero, caused by
  an off by one error in the original code

* Fixed interval creation which also had an off by one error
  that mean't 5s curve was only 4s long

* Made the shading under an interval optional, as it is a bit
  nasty and was there to hide the glitch in point 1 above

* Made the interval line solid, not dotted, as it looks much
  better that way -- especially now its used for compare mode

* Made the title red by implementing isCompare() when in
  compare mode.

* Fixed a crash on hover in season compare mode
Fix SEGV on CP picker in Compare Mode

We still need to fix the CP chart picker and hover
to use the range bests when in compare mode.
Compare Button Change to Red when on

.. better visual cues for red title, red scope etc
   to show all tied in to compare being ON.
Fix Glitch for CP Compare Intervals

.. same as the normal interval display glitch.

That was caused by appending to an array that was
already resized .. making it double the size and
prepended with lot of zeroes!
More CP Fixups

Basically to distinguish between the four modes
and only show what you are asking for;

* rangemode + normal  - the currently highlighted season only
* rangemode + compare - the compare pane seasons only
* ridemode  + normal  - the current ride and left pane intervals only
* ridemode  + compare - the compare pane intervals only
Use source context in CP compare mode

When comparing it is possible to compare across
athletes; e.g. their 2013 season vs my 2013 season --
which means we need to use the sourceContext for any
items when aggregating / fetching the data.
CP honour Appearances setting for Linewidth

.. it should have been done a long time ago!
Small fix for Centile SEGV

Array bounds checking used a double which is susceptible
to rounding issues, or at least returning values a tiny
fraction over an integer that when converted add 1.

e.g. 10.000000001 -> 11 when converted to int.
Include <QCheckBox> for QT5
Should only auto refresh filters if we have Lucene configured to prevent core dump
Merge pull request #746 from jjofre/master

Should only auto refresh filters if we have Lucene configured to prevent...
AllPlot Compare Mode

.. extending the interval compare to the allplot chart.
Fixup ComparePane to derive xPower, NP et al

.. so they can be plotted alongside other data
   series in each chart.
merge upstream into master
merge master into personal