upgrade to rails4
fix spec deprecation warnings
exclude rails routes
do not render layout in xhr request
remove the restriction for rails version
play nice with Rails 3 and 4
Merge pull request #50 from vast/rails4-support

Rails4 support which plays nice even with Rails 3