Provide better API for toggling widget form expanding/collapsing

Add some phpDoc blocks, do some cleanup
Use registered sidebars to inform widget selectors

Eliminate overloaded and abused wp_localized_script so we can export non-string data (registered sidebar objects)