Tequila Rails Patch, Part 3. r:amlan

More changes previously cherry-picked from Rails 3.2.x to
tracksimple/rails/ts_rails_with_remember_record_state_3_1_1:

https://github.com/tracksimple/rails/commit/293c520
    Methods like status and location are interfering with redirect_to
    [Closes #2511]

    cherry-picked: 75dd33a0aed96d9f03b79c82f7e5bc5ccf462e8e

https://github.com/tracksimple/rails/commit/520e46e
    javascript_include_tag should add '.js' to sources that contain '.'

    cherry-picked: ba708126d85a020f8984db1a12261bcdba47d70f