Added PyYaml to requirements for the js includes parsing
Mended hasMany id outputting
Abstracted out writing out JSON
Cleanup