fix product availability graph to respect global stock policies.
also fix tests, update README for tests, and fix to facility form save.