Added support for custom attributes

Still needs some refactoring work.  But the lead form is functioning
with custom attributes now.