Nbagg enhancements

Extends the nbagg backend to support animation, improves some of the code, and fixes a focus issue when closing figures.
Should this have been de-indented?  This reads as only operating on the last figure.  If that is intentional, I think this should read as `managers[-1]`