Add isremote method to refs

Adds an easy interface to determine if a reference is a remote reference or a local reference