moved the gaecommon/gae.go funcs here for convenience
merge