Add hierarchical_collapse notebook extension

This PR also  makes hidden cells persistent over load/save for both the *hide_input* and *hierarchical_colapse* extensions.