Added std::istream constructor
Refactored and removed external json file
Added distcheck to travis.yml