Add support for preparing a WebResource before serving for bits which render templates etc and need to be rendered before bytes and/or length can be known.
check state sanity for prepared resource
content-type is nullable handle null case, add assert to make IDEA shut-up
always set content-type, use application/octet-stream for unknown.
add constant for unknown content-type
update docs
NX-158: replace Class.forName with classLoader.loadClass
expose shiro.globalSessionTimeout, for some reason the default property configuration is not working
improve logging
tidy
Align FS RRS buffer sizes

Similarly as in content, here BufferedOutputStream was used with
default size, while internal buffer was created too for
LRS stores. This change:
* ups the buffer size from small 4k to Java default 8k
* aligns the bufSize used in copy with the one used in BufferedOutputStream
Merge pull request #296 from sonatype/NX-158-replace-class-forname

REVIEW: NX-158: replace Class.forName with classLoader.loadClass
Fix authetnicate header response, was missing end quotes
Merge pull request #297 from sonatype/NEXUS-6189-expose-global-session-timeout

WIP: [ENXUS-6189] expose shiro.globalSessionTimeout configuration
Merge pull request #289 from sonatype/preparable-web-resources

REVIEW: Add support for preparing a WebResource before serving
Merge branch 'NEXUS-6189-expose-global-session-timeout'
Merge remote-tracking branch 'origin/master' into as-expired-fixes
Make runtime ex logging happen at warn level.

Still, the point of logging here was to not swallow
and allow for these to happen traceless, hence
we do log them.

Still, these do not (and were not before change either)
breaking the execution chain here, as expected.

This is merely to have some insight, instead
of wonder why a proxy refuses to remotely
fetch something and it hide actual reasons
(like it was an NPE in my case)