Update Instances Endpoint

Factor out Q object to make queries more readable and DRY.

Don't filter personal instances by nearby predicate.
Merge pull request #1433 from steventlamb/topic/update_instances_endpoint

Update Instances Endpoint