Store URL in settings. Code cleanup around credentials.

Still need to move calls out of UI thread.

Also, still weirdness around RESW but I can't figure out a solution yet