Refactored convertDataToJson

Also, added setter/getter for x axis column
Wrote data conversion for donut charts, added tests
Refactored tests
Fixed tests and added autoloader to composer.json