Logistic regression: New API, updated user doc & install-check

Also corrected several bugs caused by the previous commit