Rails4 fixes, also removing deprecation warnings. All specs passing.
Merge pull request #14 from codepodu/master

Rails 4 support