Adapted to simplified API.
Added support for templates.
Removed qualified access, replaced with simple names.
Adapted build for deploying artifacts to GH repo.