upgrade rails dependency to 4.1
adds state machine patch for rails 4.1 compatibility
Merge pull request #13 from G5/upgrade-rails-dependency-70198610

upgrade rails dependency to 4.1