Add Python authentication module

Doesn't yet use module in other Python API endpoints, but this seemed like a useful checkpoint.

This also includes the changes from my branch to make RPC paths relative.