backends: Unlink ids file on error
backends: Added ability to change backend's ids

Now it's possible to change them at runtime by session::set_backend_ids