Merge pull request #4 from oleg-umnik/master-my

Second request
- free ttbin file structure properly
- begin adding support for race setup/result in the ttbin file
change internal ttbin timestamps so they're all utc, rather than a mix of utc and local times
storing unrecognised ttbin records in preparation for adding support for writing ttbin files
rewrite ttbin file storage and processing to better support file modification and writing, including correctly reading, storing and rewriting unknown file records
- added further support for writing ttbin files
- added a basic program to add laps to existing ttbin files and/or truncate the file at the end of the last lap or race result
Merge pull request #5 from ryanbinns/write-ttbin

Write ttbin
- added support for training goals in the ttbin file
- made sure treadmill and swim files are truncated correctly (previously would only work for GPS-based activities)
- add support for reading/writing interval training information in ttbin files
- add support for truncating ttbin files after the end of the preset interval training
- modify goal truncation so it truncates after 100%, not the last goal progress indication (which can go over 100%)
- corrected watch history data structure
- increase precision of internal latitude/longitude storage so that no rounding errors occur
- make "make clean" ignore errors for nonexistant files
- make file exports work when downloading multiple activities
Don't try to recreate input ttbin file in current directory