Fix urllib error handling

Oops, read the docs; my bad
Also link accounts to users opportunistically

Really finished off #67