Fix #717: strip_credit_from_gid has misleading semantics, this replaces teh const version of strip_credit_from_gid() with get_stripped_gid() and moves all functions related to managing gid credits into the namespace hpx::naming::detail.