Update coined.js

Remove dependence on filesystem by switching to memdown and associated misc changes.
!WARNING!: THis only works for in-memory brain wallets - using it for anything else will result in lost funds!!!