Move adapter template into subdirectory.

Also, uses `copy_file` instead of `template` to avoid manually escaping the
ERB tags.