Add support for file input fields
Only use FormData() for POST requests
Fix typo in README.md, "Layout Reloading" section
Trim cache length in cachePop, not just cachePush

This fixes a bug where the `pjax.defaults.maxCacheLength` setting was
being applied when navigating to new pages but not when users hit the
back or forward buttons.

Two symptoms of this were:
* Setting `maxCacheLength = 0` didn't completely disable caching;
  hitting the back button followed by the forward button would ask the
  server for the first page but read the second one from the cache. I
  think this is probably the bug that was discussed on issue #406.
* Regardless of what you set `maxCacheLength` to, the forward cache
  would continue growing as long as you kept hitting the back button.
Split up and simplify maxCacheLength tests

A few changes to make these tests less scary:
* Invert `navigationWasCached` var to `didHitServer`, which feels a
  little more intuitive.
* Split the back button and forward button cases into separate tests.
* Reduce the number of assertions per test.
* Replace some comments with assertion text.
* Reduce `maxCacheLength` in the back button and forward button tests
  from 2 to 1 so that each test requires fewer steps.
Fix curl download instructions

curl needs to follow redirects in order to fetch the raw file.
Improve pjax function synopsis and :memo: the options
Merge pull request #433 from defunkt/options-docs

Document the pjax options
Document `$.pjax.reload` function

Closes #441 [ci skip]
Merge pull request #410 from brigade/trim-cache

Trim cache length in cachePop, not just cachePush
Fix pjax on iOS Simulator

The iOS 8.0 simulator on Mavericks contains the following in its
user-agent string: "iPhone; CPU iPhone OS 10_9_5 like Mac OS X"

The "OS 1" bit gets interpreted by our regex as if it were iOS 1.0 and
thus forcing pjax to be disabled since history manipulation APIs weren't
stable until iOS 5.0.

Fixes #443
Fix handling `<script src>` tags with no `type` attribute

Avoid setting the dynamic `script.src` to "undefined".

Closes #271
Have minifiers retain the copyright notice in source

C-style block comments that start with `/*!` remain untouched by
minifiers such as YUIMin, JSMin, etc.

Closes #352
Indicate MIT license in source code

Fixes #407
Merge pull request #376 from VesQ/patch-1

Fix typo in README.md, "Layout Reloading" section
Switch comparison of method so "PATCH" is included

Per comments in PR
Merge pull request #353 from bfrohs/fileFields

Add support for file input fields
Merge remote-tracking branch 'upstream/master'