Move the here-doc shenanigans into a separate file

Instead of doing that shimming hackery, using a separate file and content
loading it works, and means we can stop doing bad things.
Moving everything into subdirectories
Version 0.0.2