Make it possible to output all extra input attributes

Grails tags typically pass/output all the attributes that they don't process transparently (f.e. data-xxx attributes). This is not possible in the custom field templates if the attributes are not known beforehand because all the attributes are merged into the model.
This can be solved by keeping all the extra attributes together in the model in the 'attrs' Map.