thefilebay: fix download & upload (upstream modified)
letitbit (upload, download): Support for sessions caching

Semantics: Whenever there is a cached session, it is checked
for validity and reused if possible. Credentials provided via
command line or config file do *not* take precedence. Those are
considered only if there is no valid cached session.

Fixes issue 1224
letitbit: Remove pipes to avoid SIGPIPE issues
thefilebay: fix login (upstream modified)
1fichier (download): fix filename (upstream modified)

Closes issue 1229.
1fichier (premium download): fix filename (upstream modified)

+ fix plowprobe
core.sh (match_remote_url): indent fix
1fichier (probe): handle additional link format

For example:
https://1fichier.com/?dbqji4vx5f
core.sh (process_core_options): redefine PATH when required

Introduced in commit:
plowdown, plowup, plowdel: --captchaprogram considers ~/.config/plowshare/exec/ directory
revision 988ca6f84f6a8402eb95a51f7367b92f5425a1df
filecore (download): fix
filepup_net (download): fix, website updated

--referer is now mandatory in final url.

Not tested with premium account.
yourvideohost: new module

Account download only.
Closes issue 1239.
yourvideohost (download): fix js code

Don't use external javascript classes like JSON.
rhino has it but not some other interpreters.
filecore (download): fix
filepost (probe): fix %s and add %i --printf option
add some --printf tokens for JSON processing

For example:
$ plowprobe --printf '{"url":"%U","size":%s}%n' http://myhoster.com/files/11a65383/
{"url":"http:\/\/myhoster.com\/files\/11a65383","size":104400000}

- plowup
  %U (download url, JSON string)
  %D (delete url, JSON string)
  %A (admin url, JSON string)
- plowdown
  %U (download source url, JSON string)
  %D (download final url, JSON string)
- plowprobe
  %U (download source url, JSON string)
- plowlist
  %U (download source url, JSON string)

Important change for plowup, the two aliases change:
%D => %L
%A => %M
Don't forget to update your --printf format string in your scripts.

Update man pages.
plowlist, plowdel: add --no-curlrc command line option
zippyshare (download): fix again!

Using sed directly is not allowed in modules but this is a smart fix!

Here the ugly and slow alternative using plowshare API (instead of sed):
<code>
local JSDUMMY JSTEMP JSITER JSCOUNTER=0
JSITER=$(echo "$PAGE" | parse_all_quiet script '<\(s\)cript[^>]')
for JSDUMMY in $JSITER; do
  ((JSCOUNTER++))
  JSTEMP=$(grep_script_by_order "$PAGE" $JSCOUNTER) || return
  if match '^<script' "$JSTEMP"; then
    JS+=$(delete_first_line <<< "$JSTEMP" | delete_last_line)
  fi
done
</code>

Closes issue 1237.
Makefile: allow several "make install" for update

For example:
<shell>
$ make install PREFIX=/usr
...
... install files ...
...
$ make install PREFIX=/usr
$
</shell>

The second make did nothing. This is not the case anymore.
This is a common user behavior for "update".

Alternate clean way is:
<shell>
$ make install PREFIX=/usr
$ make uninstall PREFIX=/usr
$ make install PREFIX=/usr
</shell>

Note: "update" and "reinstall" are a little different.
In first case, old files (dropped modules, orphaned files) are kept, but this is not so important.
plow*: add --curlrc=<config file> command-line option

Closes issue 1242.