Split editable select code used for quota selection into a jquery plugin

@Raydiation @bartv2 @DeepDiver1975 and @jorin-vogel if you're interested