Fix issues in GPX module, reformat code, add attribute support, add tests
Reformat according to GS standards, and minor fixes