Rough cut of searchability and data model relationships related to custo...

...m attributes.
I'm not exactly sure how to setup this backref. The relationship should be based on the SQL query on line 465. I'll keep working on this. But help would be welcome.