rename things to match the fido u2f javascript better

plus cleanups and more documentation