Handle nbformat v4

This fixes #29 by updating the code to reflect nbformat 4 changes. If someone tries to use nbgrader with a notebook in a previous format, it will be converted to v4.