move everything to be compatible with BackboneJS REST adapter