Clean up temporary association objects

This PR fixes the strang behaviour that an empty record is added to the referenced association collection if you put the ``link_to_add_association`` above the call to ``fields_for`` call. If it's below of ``fields_for`` this doesn't happen.

I also updated the dummy app configuration on the way to remove some deprecation warnings and updated tests to check for the problematic behaviour described above.