Use mixins to share User class between client and server.