Add AMD wrapper; generate using Twig templates.
Update build and tests for new options.