move api to new version and add tests

IMO few projects use JSON to manage its constants, and node itself use a js file to do this, and most modules have not the management for constants, they just use the string or function name to do this, and now i would like define this constants using a js exports :)