An adapter for backbone models and collections on top of sharejs documents