never import pigments at module level in nbconvert

ensures things are always importable, and delays ImportErrors until they are actually relevant.
delay jinja2 imports to runtime in nbconvert

same treatment as pygments in previous commit
turn missing dependencies in nbconvert to 500 errors

pygments is the only such example at this time
be more specific about unknown status codes

per review