Fix usage of $_LP_SHELL_bash
keeping liquidprompt from overriding PROMPT_DIRTRIM when path shortening is disabled
Reset LP_OLD_PWD on startup

Reset the LP_OLD_PWD variable on startup.
This makes debugging easier: previously we had to change directory
after a reload to see the changes of the new code for the PWD-cached
parts.
bash/PROMPT_DIRTRIM: complete rewrite

Complete rewrite of the _lp_get_dirtrim into _lp_set_dirtrim with a much
faster implementation that avoids char by char processing of $PWD.
Also use (( )) builtin.
_lp_shorten_path: set value for locals on separate line (zsh)

zsh doesn't like if we set the value of a local while we declare it.
_lp_shorten_path: don't use a sub shell anymore

Instead of using a subshell, _lp_shorten_path now directly sets its
result into the LP_PWD variable.
This is not just for style, but for speed.
Compute lines of *unstaged* changes in prompt

Parse `git diff --shortstat` to get the line count of *unstaged* changes.

Improvements of the git related stuff are still possible, using more
plumbing commands, like:
* `git diff-index --quiet HEAD` to check for uncommitted changes (branch
  color), rather than relying on the `git diff --shortstat HEAD`
* `git ls-files --exclude-standard --others` to check for untracked
  files
Merge branch 'develop' of https://github.com/nojhan/liquidprompt into develop