REVIEW: [NEXUS-6027,NEXUS-5279] remove appcontext

https://issues.sonatype.org/browse/NEXUS-6027
https://issues.sonatype.org/browse/NEXUS-5279

Based on:

* https://github.com/sonatype/nexus-oss/pull/245