Fix: Rest#put use file descriptor or pure binary

In some cases when the input string is a large binary,
which is stupid to test it's a file path or not
From#upload use file descriptor or file path as input
Every moment test with an random directory, or conflicts may happen
ActiveSupport need 3.2.8 or later
Bump version to 1.0.4
merge from develop