Per popular request, publishing what I have so far for jupyterhub support, which is not much. But it may server as a starting point for someone smarter than I.