update preferred api endpoints to work like they do in condenser
in condenser, we created a new UI for users to set their endpoints and now store them in cookies instead of localstorage. the same changes should be made for the wallet project
in condenser, we created a new UI for users to set their endpoints and now store them in cookies instead of localstorage. the same changes should be made for the wallet project