[refactor] Moving code to individual files.
[ignore] JSON line endings no LF. Not CRLF.