cleanup + rails 4.x

@staugaard 

trying to get rails 4 compatibility, but did not work out, so first cleaning out the junk :)