Leaf collection

Created a leaf collection connector and removed that logic from the main `app.rb`. @eeeschwartz can you sanity-check this?