GET /account also replying JSON

The GET /account route now also replies JSON besides rendering HTML (using content negotiation).
This PR enables the API client to get enough data in one go to allow user account management.