Add SyncAdapter support

Pull request for issue discussed in #52