Draw Update: Sidebar enhancements, data propagation

Two cool function in the lib.js file for data dependencies and
propagation. Used to keep the sidebar info updated. Can be used to a lot
of stuff though. Definitely will be in the future.