XCSoar task file writer implementation

This PR resolves #4