Add Rails application for integration testing
Improve Rails app setup
Fix file upload spec