Add support for file input fields
Only use FormData() for POST requests
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 https://github.com/defunkt/jquery-pjax