Moved the template and mounting into a plugin so it's easier to test