Fix events shown on LTM plots

Recent update to change the way the LTM configuration dialog
worked accidentally lost the events setting.

Show events is not being stored in the LTMsettings 'datastream'
but as a separate chart property -- but *is* stored internally in
the LTMSettings class.

it was being lost when the datastream is appled. This fix makes
sure the value is remembered and reapplied after the settings are
applied.
Compare Pane 'hpos' property

Introduce an hpos property on TabView::mainSplitter so we can use
an animation to make the compare pane slide up and down when
arriving and leaving.

Will add the animation shortly, just pushing to save updates.
Compare Show Animation

.. need to fix hide timeout animation but do that
   later tonight.
Auto show compare on drag interval

.. but its broken, needs fixing.
Fix auto show/hide compare pane on drag/drop

.. now the compare pane will appear and disapear
   when the user drags and interval / season into
   the view.

By fixing the way we handle QDragLeaveEvents in the
code in TabView.h ViewSplitter.
Set GC_DEBUG for debug builds

.. when building a debug build of GC with CONFIG += debug
   then we define a macros GC_DEBUG.

.. main no longer redirects to goldencheetah.log if you have
   GC_DEBUG set, so developers will continue to see debug
   messages on the terminal output (for mac/linux only).

.. we could use the GC_DEBUG macros to allow debug messages
   to be switched on / off in the code in future
Compare Pane Mechanics

.. compare pane now appears and disappears on both
   the analysis view and home view

.. it also is notified of drag/drop events and can
   accept the objects dropped

.. it is now time to write the widget for collecting
   and managing compare sets
Toolbar/Menu update when Compare Pane Show/Hide

.. if the compare pane is automatically shown or hidden
   due to the user dragging and dropping the menu and toolbar
   got out of sync with the status of the widget.
FitRideFile: Correction for last Garmin firmware updates
In last Garmin firmware there is some (unknow) fields with multiples values

Fixes #724
Don't reset ANT channel settings on search timeout

Wiping out these settings prevents a successful reconnection
of the device if it comes back into range

Fixes #514
Merge pull request #731 from dresco/ANT

Don't reset ANT channel settings on search timeout
Show reference lines on CP chart

.. but only when showing a 'power' data series
   such as NP, xPower, aPower etc.
Merge branch 'master' of github.com:GoldenCheetah/GoldenCheetah
Add Filter Sidebar

To allow selection of filters aka Named Searches when
plotting charts.

Fixes #732
Fix LC_LOCALE on Xcode 5

by including "locale.h".

Fixes #734
Fix LTM title filter color bug

.. the title of an LTM chart doesn't change when you
   select or deselect a filter in the sidebar.
Fix sidebar sizing bugs

.. part of the refactor of mainwindow saw the sidebar
   sizes independently set and therefore using different
   settings.

.. we now use the old setting if first time through, or
   if first time run for athlete set a sensible default.
Prefs pane sizing to font size

.. to stop it being too small when you select a larger font.
Bests offset error

.. when plotting 1s best aka Max Power, the code was using
   the wrong offset (out by one) and returning 0w.
Cache StressCalculator in LTMPlot

A bit of a compromise since really we should move the
stress calculators to the Athlete class and reuse when
no filtering is applied.

This code fix just means the SC is not recalculated for
each of the individual curves (LTS, STS etc) and pretty
much halves (or better) the time taken to refresh the
LTMPlot.

For those with very few rides (<500) this isn't much of
an issue, but for some with lots (2000 or more) it can
be quite tedious.