mention fork support in common.bash
refactor checkgmail profiles to use JSON