Move a lot of old code around
Move a lot of old code around

Some code is still relevant with the new doc, some not, but this has been in my
working tree for a while.

lukesanantonio/inpassing-backend,lukesanantonio/inpassing-backend