Added API docs and Python/JavaScript support for sync.
Added a simple polyglot test for sync