In a previous example I showed how to secure an HTML5 application with Azure
[https://azure.microsoft.com/en-us/] AD using JavaScript as the target
programming language. However, the imminent release of AngularJS 2 also means
that TypeScript [http://www.typescriptlang.org/] is going to become more
mainstream IMO. So