Extract print_chart code into gem and add API endpoint
Merge remote-tracking branch 'upstream/master'