Issue 178 stateless account linking

I'll rebase, etc but wanted to get this PR open. It is ready for review.

@shane-tomlinson thanks for volunteering.

Fixes Issue #178 and #193.