Refactored Store#saveRecord url generation logic to rest adapter.