Add support for class name option

Allows you to use the same static model for multiple
static associations.
Make it support 1.8.7 ...

Gah