update dependency on activesupport, we now need class_attribute
implement add_template_to_file, that allows to add text snippets to generated files

The method skips the update if the snippet is already there. On
destroy, the snippet gets removed if it is found