Deprecating stuff that is about to be removed.

Deprecated things (in 2.7) that are about to be removed in pull below (post 2.7)

See
https://github.com/sonatype/nexus-oss/pull/222