Rails 4 ready

All tests pass on rails 4 rc. Just needed to update gemspec. Also tested in basic photo app - works as expected.