removed GITWRAP_DEFAULT_TLSRESULT define
moved result parameter to first position
move result in implementations
merged PR #18 plus manual refactoring of methods introduced by other PR's