NEXUS-6045: Pulled out common stuff into core

And introduced a Filter that is capable of rendering
Nexus specific error page. The content and
static resources plugin now both depend on this core
filter, and there is no inter-plugin dependency.