Finally got the session variables working. More info here:
https://blog.oio.de/2013/02/22/vaadins-variable-scopes-vaadinsession-and-ui/