Return results from collection methods on livedata connection.

This allows us to immediately return local collection return values inside
stubs.
Test and fixes for returning upsert results immediately inside stubs.

Added a test for upsert return values. Factored out some more upsert test
helpers.

Could still use a test for update/remove return values inside a method stub.