Merge pull request #46 from tpodom/master

Retry limits, custom permanent error codes, filesAdded event
Pass query-function a ResumableChunk.
Also change query behaviour on send.
Merge pull request #48 from srijs/more-query-parameter

Pass query-function a ResumableChunk.
Add infrastructure to opt-in posting OCTET-STREAM.
Document option.
Merge pull request #49 from srijs/feature-octet-stream

Add infrastructure to opt-in posting OCTET-STREAM.
Add chunk preprocessing facility.
Document feature better.
Fix parallel uploads.
Merge pull request #55 from srijs/feature-preprocess

Add feature to preprocess chunks prior to testing & sending.
Implement forceChunkSize option
Implement Resumable.addFile
Implement for real.
Merge pull request #57 from srijs/feature-add-file

Add possibility to add file manually.
Merge pull request #56 from srijs/fix-last-chunksize

Fix the last chunk size dilemma.
Implement first version of getOpt.
Clean up implementation.
Move option init.
Missed two lookups.