Pulled in all of the sample sync adapter code from the google samples.

Now, need to change it to be actually relevant.