This change introduces a global, per-state cache that keeps account data in the canon state. Thanks to @karalabe for lots of fixes.