fix inline/block invocation with mistune
Merge pull request #6247 from minrk/mistune

fix inline/block invocation with mistune
require mistune 0.3.1

changed signatures
mv services/notebooks services/contents
rename notebooks service to contents service

minimal functional changes, committing because tests are passing.
teach contents service about non-notebook files
teach tree view about non-notebook files
add support and tests for uploading and saving regular files
test creating a directory with PUT
contents service review

- missed some s/notebook/file/ in docstrings
- manager doesn’t sort contents
support deleting empty directories

can’t copy directories
use contents manager to handle redirect of /notebooks -> /files

avoids 404 on /files for visiting a nonexistent notebook
updates per review

a few more notebook mentions in docstrings,
and inappropriate use of setdefault.
move `/files/` redirect to base handlers

and reuse it in /nbconvert/html/…

closes #6137
whatsnew for contents service
updates per review

- clarified docstrings and errors
- still more notebook/file renames
- configurable untitled names
- copy_from can be full path
- fix running, upload, new-tab behaviors in dashboard

Yay, review!
various upload fixes

- recognize 201 as success (dataType must not be 'json')
- support uploading non-notebook files (b64-encoded)
update contents per further review

- fix is_hidden always returning True on nonexistent files
- create hidden dir fails with 400
- don't read binary files twice
- logging improvements
- dialog on invalid notebook upload
- warn about disabled `--save`
remove unused project_dir