Update book_rest.js - ability for other models to use this adapter

the code at line 111 causes the BASE_URL to persist even if different models (with different base urls) use the same sync adapter, so i added code in the sync method to override BASE_URL with the adapter's config.base_url.