Added callback versions of PlotLines/PlotHistogram

As I suggested in #63. This keeps the original APIs, but just rewrites them in terms of the new implementation.