Turbolinks support

Not sure if this is the best way to do it, but I use a window-global property to make sure events on the add and remove fields are only added once.

This patch works without turbolinks enabled, as well.