silence warnings about AR defining the same modules

@staugaard @morten @steved555 

rails reopens the same module but always sets it again -> shows warnings
it actually still works fine ...

also:
 - use class directly instead of name for less indirection
 - keep static methods in a module that we include

### Risks
 - None