Implement the new account page structure (fixes #1)

The GUI uses the old structure of the terminal output of the accounts.
This commit reflect the new structure and make it compatible to the
current hardware version (reading all 6 pages). This also refactor a lot
of duplicate code and make it a little bit more robust.