Feature/test nan log1m

#### Summary:
Added NaN tests for log1m in math/functions, agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN.

#### Intended Effect:
Added NaN tests for log1m in agrad/fwd/functions, and agrad/rev/functions with doc on behavior at NaN. 

#### How to Verify:
Run test/unit-agrad-fwd/functions/log1m, test/unit-agrad-rev/functions/log1m

#### Side Effects:
None.

#### Documentation:
Added doc on behavior of log1m at NaN and partial derivatives.

#### Reviewer Suggestions:
Anyone.