nbconvert: Sphinx vertical spacing changes

- Reduced `\vspace` calls
- output cells and prompts both use mdframed like the colored input cels

closes #3866 

**Please do not merge yet.**