Remove active support dependency

Hi - while poking around at the code, I noticed that the code has an undeclared dependency on ActiveSupport. I have made the code a tiny bit less awesome - but in doing so, I hope, I have made it a bit more portable.

I also added some tests to cover the change.