Adds tasks for round tripping JWT tokens, making testing and deployment easier.

This set of changes adds two ant tasks that produce and consume JWT tokens and thus provide a mechanism to check a web-apps configuration before deployment. It also includes some fixes to the JWT verification logic and the ability to generate JWT tokens for external and internal consumption.