Refactor metadata to parse ERB comment block

Also:
* move any output to main rake task (WIP)
* Add tests for metadata, map_oses, and main rake task