Limited railties to >=3.1 and <5.0

Just keeping semvers in check
Bumped version to 0.2.8