Store automatch URL for reconnect

Automatch URL was misiing when reconnection.
This pull request stores it in AM.url and uses it when reconnecting.