GPromise: Remove gbase cruft. Refactor. Add doc strings.