Reorganise code to work properly with rails 3.2
Reorganise code to work properly with rails 3.2

The switch to class_attribute from class_inheritable_array was the right thing but needed
to come before we then tried to use that class_attribute. That's fixed here and I've also
removed the InstanceMethods module as that's just noise.

jystewart/xss_terminate