Add .travis.yml file
fix FromJSON and ToJSON instances