Added support for JSON
Allow viewer to work for JSON or YAML based on input.
Started messing with async
Fixed stuff
Make use of 'filetype' field of library_list
Added ability to load any type of file
Updated README for JSON
Removed whitespace
Fixed comments and initialized isYaml to true for tests
Fixed comments and initialized isYaml to true for tests