Tweak Is<thing> functions.

For the names that are used in Juju where we check for valid names, they are now called IsValid<thing>.

Neither environments nor relations were checked (and actions shouldn't be), so they are now not exported.