JSON Web Tokens implemented in scala