Refactor pane.js
Fix bug and move axis_labels to Axis from Pane