Added option for rebuilding reverse dependencies

This PR is intended as a starting point for discussion on solving #1. I just did the easiest thing imaginable, not sure if I forgot something. If so, let me know.