Multiple fixes for rack packaging

Rack servlet fails if HTTP status returned as a string
Rails app fails to load gems correctly with JRuby 1.7
Precompiling assets step fails when building
Rack packaging doesn't handle cookies correctly