Refactored to use TypeScript
added -serve-testing flag
Use cookies to authenticate access to materials