Small changes to clean up webagg javascript code a bit.
Added the nbAgg backend to allow interactive figures in the IPython
notebook.