Register docstring
Move context factory stuff to auth