fix: remember state of showTorque in ride dialog

showTorque wasn't declared as property so HomeWindow::saveState() didn't
save it's setting.
main: allow passing athlete as argument

Allow passing initial athlete to open as command line argument.
added non-zero average power metric

This might be meaningless for actual analysis, but helps to match numbers
of devices, that exclude time with zero power from the average
calculation.

While it's controversal to be usefull, this leaves the choice to the user.
PM: show upcoming days, aswell

so far, the Performance manager restricted the view to the latest exercise
or today. So it wasn't possible to see predicted TSB for the upcoming
days.

This patch allows me to get a better forecast on when to do the next ride.
added upload to trainingstagebuch.org
Download: remeber last used device/port

last used Device/Port ist now remembered and automatically selected on
next download.

closes #683
Merge pull request #20 from rclasen/master

bunch of small changes...
Added Garmin Forerunner 110
Added support for MotoACTV csv files
Added test files for MotoACTV
Fixed a missing -1 to make non motoactv files parsable again
Enable Measures in v3.0

Re-enabled the measures feature, largely to allow donwload
from Withings for folks that track weight.

This is to provide better support ahead of showing watts/kg
on the mean max "CP" chart.
Merge branch 'master' of github.com:/srhea/GoldenCheetah
Add Watts/Kg in the cpx cache files and in the CP plot

	modified:   src/CpintPlot.cpp
	modified:   src/CriticalPowerWindow.cpp
	modified:   src/CriticalPowerWindow.h
	modified:   src/HistogramWindow.cpp
	modified:   src/RideFile.cpp
	modified:   src/RideFile.h
	modified:   src/RideFileCache.cpp
	modified:   src/RideFileCache.h
Watts per kilo slight changes

Attempt to sort using withings data, but commented out for now. But
it will compile if uncommented. Also changed name to Watts per Kilogram.
Withings Weight and Watts per Kilogram

Fixed up the code to use withings weight when calculating watts
per kilogram and the display on the CP chart.

There will be issues when retrospectively refreshing data from a
withings account, but that is such an edge case we can just ask
people to delete old .cpx files to ensure they are refreshed.
Manual entries compute metrics

A few months ago I commented out the calculation of metrics
for manual ride files. This was a hack to avoid fixing the code
to handle metric calculations from overrides where there are no
data points.

This annoyingly meant that the 'rides' metric was zero for manual
ride files, and any derived metrics similarly were zero.

This patch fixes that.
SrmDevice: fix catching broken downloads

broken downloads weren't detected, properly. This caused empty files to be
created.
SrmRideFile: don't truncate comment

last character in comment was truncated due to a bad string termination.
SrmRideFile: handle bad/truncated files

SRM file reader didn't check stream status / values taken from the file.
This could easily lead to segmentation faults.