Fix compiler warnings

All are harmless but for the sake of clarity have
fixed them all bar a couple;

- Lucene grumbles about signed/unsigned conversion which
  is/isn't valid depending upon the version of CLucene you
  compile with. Either way it is harmless.

- QxtScheduleView has a bunch of issues, but since it is a
  third party widget its better to leave it unchanged.
Merge pull request #473 from jjofre/master

Restore load/gradient after done with calibration
replace tabs with spaces

.. in TrainTool.cpp
Update docs for build

.. to run qmake -recursive from the top level directory
to ensure subdirs Makefiles are regenerated.
Mac buttons retain

.. trying to address corrupted button icons.
Fix SEGV in ride editor

When switching between a ride with datapoints and one
without, then back again. Editor data was being deleted
for previous ride edited when selecting a ride with no
data!
Kickr connection fail gracefully

.. the code assumes the kickr connection will always work, even
when no BTLE hardware is present.

If no BTLE hardware is available then connections fail immediately
and so do attempts to find devices.

If BTLE hardware is available but the kickr connection cannot be
established in 30 seconds in train view then it returns an error.

Also added better device descriptions to check the device subtype
so we can identify stages, inride and kickr separately.
Code Cleaning: LTM sources

Addressing or removing 'XXX' code alerts across the Long Term
Metrics source files.

This is part of a code cleanup prior to V3.0 release.
Code Cleaning: ANT+ sources

Removing and fixing 'XXX' code markers across the ANT+
code. Largely this was to confirm against specs and mark
for future support (e.g. burst data, further refactoring
of the quarqd sources).
Code Cleanup: RideNavigator

Remove XXX and commented out code. No functional changes.
Code Cleanup: Home and GcWindows

Tidy up code, removing XXX and comemnted out blocks
of code in preparation for V3.0 release.
Code Cleanup: Add Device Wizard

.. just comments
Fix colorpicker focus loss on Mac

.. when editing a custom metric. This is to get around
a QT Bug ().

Fixes #476.
Code Cleanup: TP upload/download

.. just removed commented out code.
Code Cleanup: Train

.. TrainDB and TrainTool cleanup, removed references to GC servers
and removed commented #if0 code.
Mac Buttons Icon Corruption

.. another attempt to fix it.
Fix lap number issue

.. lap number jumps around when playing a crs file
Fix mac toolbar icon corruption

Because the image representation was stored in the pixmap
which was allocated on the stack -- it should be allocated on
heap since the underlying data is never actually copied.

This seems to fix the issue, but need to keep monitoring it!

Fixes #477.
Add Support for Joule CSV Poweragent Files

Updated CSV support for Joule 1.0 format files in Poweragent
format. Also included a sample ride file.
MetricAggregator less heap

Noticed when looking for memory/stack overflow issues that
the importRide function allocates an aggregator on the heap
for the lifetime of the method. No biggie, but better to use
stack for that.