REVIEW: Extract analytics api into OSS

Based on:

https://github.com/sonatype/nexus-oss/pull/470