Remove newline hacks for input yaml/rest

There were some issues with newline handling in the YAML literal chunks.
I was using the wrong YAML syntax. Fixing that fixes this.
Add license file

The project is now licensed under the WTFPL. The codebase is pretty
small, and I see no real reason to restrict people's usage of it.