fix main
generate schema and objects in Treo constructor
fix test in phantomjs env
compile treo.js