switched to no namespace version of cos and sin
added NaN tests for cos
added NaN and derivative doc to manual
updated fwd/matrix tests
Merge pull request #957 from stan-dev/feature/test-nan-cos

Feature/test nan cos